/* CSS كامل للتصميم الأحمر والأسود */
:root {
    --primary-red: #d32f2f;
    --dark-red: #b71c1c;
    --light-red: #ff5252;
    --black: #121212;
    --dark-gray: #1e1e1e;
    --gray: #2d2d2d;
    --light-gray: #424242;
    --text-light: #f5f5f5;
    --text-gray: #b0b0b0;
    --white: #ffffff;
    --success: #4caf50;
    --warning: #ff9800;
    --danger: #f44336;
    --info: #2196f3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--black);
    color: var(--text-light);
    line-height: 1.6;
}

/* صفحة الهبوط */
.landing-page {
    background: linear-gradient(135deg, var(--black) 0%, var(--dark-gray) 100%);
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    padding: 20px 0;
    border-bottom: 2px solid var(--primary-red);
    margin-bottom: 40px;
}

.logo h1 {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo-red {
    color: var(--primary-red);
    text-shadow: 0 2px 10px rgba(211, 47, 47, 0.3);
}

.tagline {
    color: var(--text-gray);
    font-size: 1rem;
    margin-top: 5px;
}

/* Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.text-red {
    color: var(--primary-red);
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.feature {
    background: var(--dark-gray);
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-red);
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    background: var(--gray);
}

.feature-icon {
    font-size: 2rem;
    color: var(--primary-red);
    margin-bottom: 15px;
}

.feature h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.feature p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
}

.dashboard-preview {
    background: var(--dark-gray);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--light-gray);
}

.preview-header {
    background: var(--gray);
    padding: 15px;
    border-bottom: 1px solid var(--light-gray);
}

.preview-controls {
    display: flex;
    gap: 10px;
}

.preview-controls span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.red { background: var(--primary-red); }
.control.yellow { background: var(--warning); }
.control.green { background: var(--success); }

.preview-content {
    padding: 30px;
}

.form-preview {
    background: var(--black);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--light-gray);
}

.form-preview h4 {
    color: var(--primary-red);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.form-field {
    margin-bottom: 20px;
}

.form-field label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-light);
    font-weight: 500;
}

.field-preview {
    height: 45px;
    background: var(--dark-gray);
    border: 1px solid var(--light-gray);
    border-radius: 6px;
}

.select-preview {
    position: relative;
}

.select-preview::after {
    content: "▼";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
    font-size: 0.8rem;
}

.textarea-preview {
    height: 100px;
}

/* Features Section */
.features-section {
    padding: 80px 0;
    border-top: 1px solid var(--light-gray);
    border-bottom: 1px solid var(--light-gray);
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--dark-gray);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.feature-card:hover {
    border-color: var(--primary-red);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(211, 47, 47, 0.2);
}

.feature-card-icon {
    width: 70px;
    height: 70px;
    background: rgba(211, 47, 47, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-card-icon i {
    font-size: 2rem;
    color: var(--primary-red);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-gray);
    line-height: 1.7;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 0;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.footer p {
    margin-bottom: 10px;
}

/* صفحة تسجيل الدخول */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--black) 0%, var(--dark-gray) 100%);
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 450px;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.login-header p {
    color: var(--text-gray);
    font-size: 1.1rem;
}

.login-box {
    background: var(--dark-gray);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid var(--light-gray);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.login-box h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--text-light);
}

.login-subtitle {
    color: var(--text-gray);
    margin-bottom: 30px;
    font-size: 1rem;
}

/* Dashboard Layout */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: var(--dark-gray);
    border-right: 1px solid var(--light-gray);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.logo {
    padding: 25px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid var(--light-gray);
}

.logo h1 {
    font-size: 2.5rem;
    color: var(--primary-red);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-weight: 600;
    font-size: 1.2rem;
}

.user-role {
    font-size: 0.8rem;
    color: var(--primary-red);
    background: rgba(211, 47, 47, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
    width: fit-content;
}

.user-profile {
    padding: 25px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid var(--light-gray);
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-gray);
}

.user-info h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.user-info p {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 5px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    color: var(--text-gray);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-nav a:hover {
    background: var(--gray);
    color: var(--text-light);
    border-left-color: var(--light-red);
}

.sidebar-nav li.active a {
    background: var(--gray);
    color: var(--text-light);
    border-left-color: var(--primary-red);
}

.sidebar-nav i {
    width: 20px;
    text-align: center;
    font-size: 1.2rem;
}

.sidebar-nav span {
    font-size: 1rem;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--light-gray);
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: rgba(211, 47, 47, 0.1);
    color: var(--primary-red);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(211, 47, 47, 0.2);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 260px;
    background: var(--black);
    min-height: 100vh;
}

.topbar {
    padding: 20px 30px;
    background: var(--dark-gray);
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.topbar-left h2 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.breadcrumb {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.notification {
    position: relative;
    cursor: pointer;
    font-size: 1.3rem;
    color: var(--text-gray);
    transition: color 0.3s ease;
}

.notification:hover {
    color: var(--text-light);
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary-red);
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.current-time {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Content Area */
.content-area {
    padding: 30px;
}

/* Stats Cards */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--dark-gray);
    padding: 25px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid var(--light-gray);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-red);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.stat-icon.total-forms {
    background: rgba(33, 150, 243, 0.1);
    color: var(--info);
}

.stat-icon.total-users {
    background: rgba(76, 175, 80, 0.1);
    color: var(--success);
}

.stat-icon.my-forms {
    background: rgba(255, 152, 0, 0.1);
    color: var(--warning);
}

.stat-icon.submissions {
    background: rgba(156, 39, 176, 0.1);
    color: #9c27b0;
}

.stat-icon.total-submissions {
    background: rgba(211, 47, 47, 0.1);
    color: var(--primary-red);
}

.stat-info h3 {
    font-size: 2rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.stat-info p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* Tables */
.table-container {
    background: var(--dark-gray);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--light-gray);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: var(--gray);
}

.data-table th {
    padding: 18px 20px;
    text-align: left;
    font-weight: 600;
    color: var(--text-light);
    border-bottom: 1px solid var(--light-gray);
}

.data-table td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--light-gray);
}

.data-table tbody tr {
    transition: background 0.3s ease;
}

.data-table tbody tr:hover {
    background: var(--gray);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* Badges */
.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

.status-badge.active {
    background: rgba(76, 175, 80, 0.1);
    color: var(--success);
}

.status-badge.inactive {
    background: rgba(244, 67, 54, 0.1);
    color: var(--danger);
}

.badge {
    padding: 4px 10px;
    background: var(--gray);
    color: var(--text-gray);
    border-radius: 12px;
    font-size: 0.8rem;
}

.badge-admin {
    background: rgba(211, 47, 47, 0.1);
    color: var(--primary-red);
}

.role-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

.role-badge.admin {
    background: rgba(211, 47, 47, 0.1);
    color: var(--primary-red);
}

.role-badge.user {
    background: rgba(33, 150, 243, 0.1);
    color: var(--info);
}

/* Actions */
.actions {
    display: flex;
    gap: 8px;
}

.btn-action {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-light);
    background: var(--gray);
    transition: all 0.3s ease;
    border: 1px solid var(--light-gray);
}

.btn-action:hover {
    transform: translateY(-2px);
}

.btn-action.view:hover {
    background: var(--info);
    border-color: var(--info);
}

.btn-action.edit:hover {
    background: var(--warning);
    border-color: var(--warning);
}

.btn-action.delete:hover {
    background: var(--danger);
    border-color: var(--danger);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
}

.btn-primary {
    background: var(--primary-red);
    color: white;
}

.btn-primary:hover {
    background: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.3);
}

.btn-secondary {
    background: var(--gray);
    color: var(--text-light);
    border: 1px solid var(--light-gray);
}

.btn-secondary:hover {
    background: var(--light-gray);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 15px 30px;
    font-size: 1.1rem;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-light);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--black);
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 4px solid;
}

.alert-success {
    background: rgba(76, 175, 80, 0.1);
    border-left-color: var(--success);
    color: #a5d6a7;
}

.alert-error {
    background: rgba(244, 67, 54, 0.1);
    border-left-color: var(--danger);
    color: #ef9a9a;
}

.alert-warning {
    background: rgba(255, 152, 0, 0.1);
    border-left-color: var(--warning);
    color: #ffcc80;
}

.alert-info {
    background: rgba(33, 150, 243, 0.1);
    border-left-color: var(--info);
    color: #90caf9;
}

/* Form Builder */
.form-builder-container {
    background: var(--dark-gray);
    border-radius: 10px;
    padding: 30px;
    border: 1px solid var(--light-gray);
    margin-bottom: 30px;
}

.form-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    align-items: center;
    gap: 12px;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.users-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 10px;
    max-height: 200px;
    overflow-y: auto;
    padding: 10px;
    background: var(--black);
    border-radius: 8px;
    border: 1px solid var(--light-gray);
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-item input[type="checkbox"] {
    width: auto;
}

.checkbox-item label {
    margin: 0;
    font-weight: normal;
    cursor: pointer;
}

.field-item {
    background: var(--black);
    border: 1px solid var(--light-gray);
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
}

.field-header {
    background: var(--gray);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--light-gray);
}

.field-number {
    font-weight: 600;
    color: var(--text-light);
}

.btn-remove-field {
    background: rgba(244, 67, 54, 0.1);
    color: var(--danger);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-remove-field:hover {
    background: var(--danger);
    color: white;
}

.field-body {
    padding: 20px;
}

.field-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.field-options {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--light-gray);
}

/* Form Display */
.form-display {
    background: var(--dark-gray);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--light-gray);
}

.form-field-display {
    margin-bottom: 25px;
}

.form-field-display label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-light);
}

.form-field-display .required {
    color: var(--primary-red);
}

.checkbox-group,
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-option,
.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-option input,
.radio-option input {
    width: auto;
}

.checkbox-option label,
.radio-option label {
    margin: 0;
    font-weight: normal;
    cursor: pointer;
}

.file-upload input[type="file"] {
    padding: 10px;
    background: var(--black);
    border: 2px dashed var(--light-gray);
    border-radius: 8px;
    cursor: pointer;
}

.file-upload input[type="file"]:hover {
    border-color: var(--primary-red);
}

.field-hint {
    display: block;
    margin-top: 8px;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--light-gray);
}

.form-note {
    margin-top: 20px;
    color: var(--text-gray);
    font-size: 0.9rem;
    text-align: center;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background: var(--dark-gray);
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 600px;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--light-gray);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-header {
    padding: 25px 30px;
    background: var(--gray);
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.5rem;
    color: var(--text-light);
}

.close-modal {
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 1.8rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--text-light);
}

.modal-body {
    padding: 30px;
    max-height: 70vh;
    overflow-y: auto;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-gray);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--light-gray);
}

.empty-state h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--text-light);
}

.empty-state p {
    margin-bottom: 25px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Quick Actions */
.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.action-card {
    background: var(--dark-gray);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: var(--text-light);
    border: 1px solid var(--light-gray);
    transition: all 0.3s ease;
}

.action-card:hover {
    border-color: var(--primary-red);
    transform: translateY(-5px);
}

.action-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.8rem;
}

.action-icon.create-form {
    background: rgba(211, 47, 47, 0.1);
    color: var(--primary-red);
}

.action-icon.manage-users {
    background: rgba(33, 150, 243, 0.1);
    color: var(--info);
}

.action-icon.view-forms {
    background: rgba(76, 175, 80, 0.1);
    color: var(--success);
}

.action-icon.submissions {
    background: rgba(255, 152, 0, 0.1);
    color: var(--warning);
}

.action-card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.action-card p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Export Dropdown */
.export-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background: var(--dark-gray);
    min-width: 200px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 1;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    overflow: hidden;
    top: 100%;
    right: 0;
    margin-top: 10px;
}

.dropdown-menu a {
    color: var(--text-light);
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    transition: background 0.3s ease;
    border-bottom: 1px solid var(--light-gray);
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background: var(--gray);
}

.export-dropdown:hover .dropdown-menu {
    display: block;
}

/* Text Utilities */
.text-muted {
    color: var(--text-gray) !important;
}

.text-red {
    color: var(--primary-red) !important;
}

/* Media Queries */
@media (max-width: 1024px) {
    .hero-section {
        flex-direction: column;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sidebar {
        width: 80px;
    }
    
    .logo-text,
    .user-info p,
    .sidebar-nav span,
    .sidebar-footer span {
        display: none;
    }
    
    .main-content {
        margin-left: 80px;
    }
    
    .logo {
        justify-content: center;
        padding: 20px 10px;
    }
    
    .sidebar-nav a {
        justify-content: center;
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-features {
        grid-template-columns: 1fr;
    }
    
    .stats-cards {
        grid-template-columns: 1fr;
    }
    
    .topbar {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .field-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .content-area {
        padding: 15px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}