﻿:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --accent-color: #4895ef;
    --dark-color: #1b263b;
    --light-color: #f8f9fa;
    --text-color: #2b2d42;
    --gray-light: #e9ecef;
}

.add-article-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

    .add-article-header h1 {
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 1rem;
    }

    .add-article-header p {
        font-size: 1.1rem;
        opacity: 0.9;
        max-width: 700px;
        margin: 0 auto;
    }

.article-form-container {
    max-width: 800px;
    margin: 0 auto 5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 2.5rem;
}

.form-group {
    margin-bottom: 1.8rem;
}

    .form-group label {
        display: block;
        font-weight: 600;
        margin-bottom: 0.5rem;
        color: var(--dark-color);
    }

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

    .form-control:focus {
        border-color: var(--accent-color);
        box-shadow: 0 0 0 3px rgba(72, 149, 239, 0.2);
        outline: none;
    }

textarea.form-control {
    min-height: 200px;
    resize: vertical;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 1rem center;
    background-size: 16px 12px;
    padding-left: 3rem;
}

.file-upload {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

.file-upload-input {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    border: 2px dashed var(--gray-light);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .file-upload-label:hover {
        border-color: var(--accent-color);
        background: rgba(72, 149, 239, 0.05);
    }

.file-upload-icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-left: 1rem;
}

.file-upload-text h4 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.file-upload-text p {
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: black;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .btn-primary:hover {
        background-color: var(--secondary-color);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
    }

    .btn-primary i {
        margin-left: 0.5rem;
    }

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-light);
}

.form-actions {
    display: flex;
    gap: 1rem;
}

.btn-secondary {
    background-color: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .btn-secondary:hover {
        background-color: rgba(67, 97, 238, 0.1);
    }

.validation-summary {
    color: #dc3545;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(220, 53, 69, 0.05);
    border-radius: 8px;
    border-left: 4px solid #dc3545;
}

.field-validation-error {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: block;
}
@media (max-width: 768px) {
    .article-form-container {
        padding: 1.5rem;
    }

    .add-article-header h1 {
        font-size: 2rem;
    }

    .form-footer {
        flex-direction: column;
        gap: 1rem;
    }

    .form-actions {
        width: 100%;
        flex-direction: column;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
    }
}
