﻿:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #ec4899;
    --success-color: #10b981;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --card-shadow: 0 20px 60px rgba(99, 102, 241, 0.15);
    --card-hover: 0 25px 70px rgba(99, 102, 241, 0.25);
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.form-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    direction: ltr;
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
}

    .page-header h2 {
        font-size: 3rem;
        font-weight: 800;
        background: var(--bg-gradient);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        margin-bottom: 10px;
        animation: fadeInDown 0.6s ease-out;
    }

    .page-header p {
        color: #64748b;
        font-size: 1.1rem;
        animation: fadeInUp 0.6s ease-out 0.2s both;
    }

.form-card {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--card-shadow);
    animation: slideIn 0.6s ease-out;
}

.form-section {
    margin-bottom: 40px;
}

.form-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

    .form-section-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 60px;
        height: 4px;
        background: var(--bg-gradient);
        border-radius: 2px;
    }

.form-label {
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
    font-size: 0.95rem;
    display: block;
}

    .form-label.required::after {
        content: ' *';
        color: #ef4444;
    }

.form-control, .form-select {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 15px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    width: 100%;
    height: 55px !important;
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    outline: none;
}

.checkbox-group, .color-input-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.checkbox-item {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
}

    .checkbox-item:hover {
        border-color: var(--primary-color);
        background: white;
    }

    .checkbox-item input[type="checkbox"] {
        width: 20px;
        height: 20px;
        cursor: pointer;
    }

    .checkbox-item label {
        cursor: pointer;
        margin: 0;
        flex: 1;
        font-size: 0.9rem;
        color: #334155;
    }

.url-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.url-input-item {
    display: flex;
    gap: 8px;
    align-items: center;
}

    .url-input-item input {
        flex: 1;
    }

.btn-add, .btn-remove {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-add {
    background: var(--bg-gradient);
    color: white;
}

.btn-remove {
    background: #ef4444;
    color: white;
}

    .btn-add:hover, .btn-remove:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

.color-picker-wrapper {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 8px;
}

    .color-picker-wrapper input[type="color"] {
        width: 60px;
        height: 45px;
        border: 2px solid #e2e8f0;
        border-radius: 8px;
        cursor: pointer;
    }

.color-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.color-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    padding: 6px 12px;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
}

.color-preview {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
}

.section-divider {
    margin: 32px 0;
    border: none;
    height: 2px;
    background: linear-gradient(to right, transparent, #e2e8f0, transparent);
}

.info-box {
    background: #eff6ff;
    border-left: 4px solid var(--primary-color);
    padding: 16px;
    border-radius: 8px;
    margin: 20px 0;
    color: #1e40af;
}

.submit-btn {
    background: var(--bg-gradient);
    border: none;
    padding: 16px 48px;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
    width: 100%;
    margin-top: 32px;
}

    .submit-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
    }

.form-text {
    color: #64748b;
    font-size: 0.85rem;
    margin-top: 6px;
}

.file-input-wrapper {
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .file-input-wrapper:hover {
        border-color: var(--primary-color);
        background: #f8fafc;
    }

    .file-input-wrapper input[type="file"] {
        display: none;
    }

.uploaded-files-list {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    padding: 12px 16px;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

    .file-item:hover {
        border-color: var(--primary-color);
        background: white;
    }

.file-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.file-icon {
    font-size: 1.5rem;
}

.file-details {
    display: flex;
    flex-direction: column;
}

.file-name {
    font-weight: 600;
    color: #334155;
    font-size: 0.9rem;
}

.file-size {
    color: #64748b;
    font-size: 0.8rem;
}

.btn-remove-file {
    background: #ef4444;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

    .btn-remove-file:hover {
        background: #dc2626;
        transform: translateY(-2px);
    }

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .page-header h2 {
        font-size: 2rem;
    }

    .form-card {
        padding: 24px;
    }

    .checkbox-group {
        grid-template-columns: 1fr;
    }
}


@media screen and (max-width : 1400px) {
    .swal2-toast div:where(.swal2-html-container) {
        margin: 0 !important;
    }
}