/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #E8E8E8 url('../images/opus-back.png');
    background-repeat: no-repeat;
    background-position: bottom right;
    background-size: 400px;
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}



/* Header styles */
.app-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px 30px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.app-header h1 {
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 600;
}

.app-header nav {
    display: flex;
    gap: 15px;
}

/* Login page styles */
.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    margin: 100px auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.logo h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.logo p {
    color: #7f8c8d;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.login-form {
    text-align: left;
}

/* Form styles */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ABCB59;
    box-shadow: 0 0 0 3px rgba(171, 203, 89, 0.1);
}

.content-textarea {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    min-height: 400px;
}

/* Button styles */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #ABCB59 0%, #8BA446 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(171, 203, 89, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #2c3e50;
    border: 2px solid #e1e8ed;
}

.btn-secondary:hover {
    background: #f8f9fa;
    border-color: #ABCB59;
    color: #ABCB59;
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(231, 76, 60, 0.3);
}

/* Upload section styles */
.upload-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.upload-card h2 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.upload-card p {
    color: #7f8c8d;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.upload-form {
    max-width: 600px;
}

/* Process section styles */
.process-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.file-info {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(171, 203, 89, 0.1);
    border-radius: 10px;
    border-left: 4px solid #ABCB59;
}

.file-info h2 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.file-info p {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.process-card {
    text-align: center;
    padding: 40px;
}

.process-card h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.process-card p {
    color: #7f8c8d;
    margin-bottom: 30px;
}

.content-editor h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.content-editor p {
    color: #7f8c8d;
    margin-bottom: 25px;
}

.editor-form {
    max-width: 100%;
}

.button-group {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Message styles */
.message {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 500;
}

.message-error {
    background: rgba(231, 76, 60, 0.1);
    color: #c0392b;
    border-left: 4px solid #e74c3c;
}

.message-warning {
    background: rgba(243, 156, 18, 0.1);
    color: #d68910;
    border-left: 4px solid #f39c12;
}

.message-success {
    background: rgba(46, 204, 113, 0.1);
    color: #27ae60;
    border-left: 4px solid #2ecc71;
}

.error-message {
    background: rgba(231, 76, 60, 0.1);
    color: #c0392b;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #e74c3c;
}

/* File input styling */
input[type="file"] {
    padding: 10px;
    border: 2px dashed #e1e8ed;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

input[type="file"]:hover {
    border-color: #253C61;
    background: rgba(37, 60, 97, 0.05);
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .app-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .app-header nav {
        justify-content: center;
    }
    
    .login-card {
        margin: 50px auto;
        padding: 30px;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .upload-section,
    .process-section {
        padding: 30px;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .login-card {
        margin: 30px auto;
        padding: 25px;
    }
    
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .upload-section,
    .process-section {
        padding: 25px;
    }
} 