/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans Arabic', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    direction: rtl;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Header */
.header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 40px;
    text-align: center;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.header p {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Sections */
section {
    padding: 40px;
    border-bottom: 1px solid #f0f0f0;
}

section:last-child {
    border-bottom: none;
}

section h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #2c3e50;
    font-weight: 600;
}

/* Market Selection */
.market-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.market-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.market-btn:not(.disabled):hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.15);
}

.market-btn.active {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.market-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.market-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.market-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.market-subtitle {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Settings Form */
.settings-form {
    max-width: 600px;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #2c3e50;
}

.input-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
}

.input-group small {
    display: block;
    margin-top: 5px;
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Generate Button */
.generate-section {
    text-align: center;
}

.generate-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 20px 40px;
    font-size: 1.3rem;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.generate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.3);
}

.generate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-icon {
    font-size: 1.5rem;
}

/* 🆕 Logs Button */
.logs-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    margin-top: 15px;
}

.logs-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(245, 87, 108, 0.3);
}

.logs-btn .btn-icon {
    font-size: 1.2rem;
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Progress Section */
.progress-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.progress-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.progress-item.completed {
    background: #d4edda;
    border-left: 4px solid #28a745;
}

.progress-item.active {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
}

.progress-item.error {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
}

.progress-icon {
    font-size: 1.2rem;
    width: 25px;
    text-align: center;
}

.progress-text {
    font-weight: 500;
}

/* Report Section */
.report-section {
    background: #f8f9fa;
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.report-meta {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-end;
}

.report-timestamp {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: 500;
}

.report-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 2px solid #667eea;
    background: white;
    color: #667eea;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: #667eea;
    color: white;
}

.report-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    line-height: 1.8;
    font-size: 1.1rem;
}

.report-content h1 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
    border-bottom: 3px solid #667eea;
    padding-bottom: 15px;
}

.report-content h2 {
    color: #34495e;
    font-size: 1.4rem;
    margin: 30px 0 15px 0;
    border-right: 4px solid #667eea;
    padding-right: 15px;
}

.report-content h3 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin: 25px 0 10px 0;
}

.report-content p {
    margin-bottom: 15px;
    text-align: justify;
}

.report-content ul, .report-content ol {
    margin: 15px 0;
    padding-right: 30px;
}

.report-content li {
    margin-bottom: 8px;
}

.report-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.report-content th, .report-content td {
    padding: 12px 15px;
    text-align: right;
    border-bottom: 1px solid #eee;
}

.report-content th {
    background: #667eea;
    color: white;
    font-weight: 600;
}

.report-content tr:hover {
    background: #f8f9fa;
}

/* Error Section */
.error-section {
    text-align: center;
    background: #f8d7da;
}

.error-message {
    padding: 40px;
}

.error-message h3 {
    color: #721c24;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.error-message p {
    color: #721c24;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.retry-btn {
    padding: 15px 30px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
}

.retry-btn:hover {
    background: #c82333;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 25px;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        border-radius: 15px;
    }
    
    .header {
        padding: 25px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    section {
        padding: 25px;
    }
    
    .market-buttons {
        grid-template-columns: 1fr;
    }
    
    .report-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .report-meta {
        align-items: flex-start;
    }
    
    .report-actions {
        flex-direction: column;
    }
    
    .report-content {
        padding: 25px;
    }
    
    /* تحسينات للجداول على الجوال */
    #report-content table {
        font-size: 0.85rem;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    #report-content th,
    #report-content td {
        padding: 8px 6px;
        font-size: 0.85rem;
    }
    
    /* تحسينات للعناوين */
    #report-content h1 {
        font-size: 1.5rem;
    }
    
    #report-content h2 {
        font-size: 1.3rem;
    }
    
    #report-content h3 {
        font-size: 1.1rem;
    }
    
    /* تحسينات للأزرار */
    .action-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .generate-btn {
        padding: 15px 30px;
        font-size: 1rem;
    }
    
    /* تحسينات لأزرار السوق */
    .market-btn {
        padding: 20px;
    }
    
    .market-icon {
        font-size: 2rem;
    }
    
    .market-name {
        font-size: 1.1rem;
    }
}

/* Utilities */
.text-success { color: #28a745; }
.text-danger { color: #dc3545; }
.text-warning { color: #ffc107; }
.text-info { color: #17a2b8; }

.bg-success { background-color: #d4edda; }
.bg-danger { background-color: #f8d7da; }
.bg-warning { background-color: #fff3cd; }
.bg-info { background-color: #d1ecf1; }

.hidden { display: none !important; }
.visible { display: block !important; }

/* Markdown Content Styles */
#report-content h1 {
    color: #1e3c72;
    font-size: 2em;
    margin: 20px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 3px solid #667eea;
}

#report-content h2 {
    color: #2a5298;
    font-size: 1.5em;
    margin: 25px 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #e0e0e0;
}

#report-content h3 {
    color: #4a5568;
    font-size: 1.2em;
    margin: 20px 0 10px 0;
}

#report-content p {
    line-height: 1.8;
    margin-bottom: 15px;
    color: #2d3748;
}

#report-content blockquote {
    background: #f7fafc;
    border-right: 4px solid #667eea;
    padding: 15px 20px;
    margin: 15px 0;
    font-style: italic;
    color: #4a5568;
}

#report-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

#report-content table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

#report-content table th {
    padding: 15px;
    text-align: right;
    font-weight: 600;
    font-size: 0.95em;
}

#report-content table td {
    padding: 12px 15px;
    text-align: right;
    border-bottom: 1px solid #e2e8f0;
}

#report-content table tbody tr:hover {
    background-color: #f7fafc;
}

#report-content table tbody tr:last-child td {
    border-bottom: none;
}

#report-content strong {
    color: #1e3c72;
    font-weight: 600;
}

#report-content ul, #report-content ol {
    margin: 15px 0;
    padding-right: 25px;
}

#report-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

#report-content hr {
    border: none;
    border-top: 2px solid #e2e8f0;
    margin: 30px 0;
}

#report-content code {
    background: #f7fafc;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: #e83e8c;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
/* Charts Section */
.charts-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    margin: 20px 0;
}

.charts-section h3 {
    color: #1e3c72;
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.chart-container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    min-height: 400px;
}

.chart-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.chart-btn:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a3f8c 100%);
    transform: translateY(-2px);
}

/* 🆕 Inline Charts (داخل التقرير) */
.chart-container-inline {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin: 30px 0;
    border: 2px solid #e3e8ef;
}

.chart-container-inline:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    transition: box-shadow 0.3s ease;
}

@media (max-width: 768px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .chart-container {
        min-height: 300px;
    }
    
    .chart-container-inline {
        padding: 15px;
        margin: 20px 0;
    }
}

/* ============================================
   📊 Stock Analysis Page Styles (shares.html)
   ============================================ */

/* Back Link */
.back-link {
    display: inline-block;
    padding: 10px 20px;
    background: #f3f4f6;
    color: #374151;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-link:hover {
    background: #e5e7eb;
    transform: translateX(-5px);
}

/* Stock Selection Section */
.stock-selection-section {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.stock-selection-section h2 {
    color: #1f2937;
    font-size: 24px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.selection-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Search Box */
.search-box {
    flex: 1;
}

.search-box label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 10px;
    font-size: 16px;
}

.search-box small {
    display: block;
    color: #6b7280;
    margin-top: 8px;
    font-size: 13px;
}

/* Select2 Custom Styles */
.select2-container--default .select2-selection--single {
    height: 50px !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 12px !important;
    padding: 8px !important;
    background: #f9fafb !important;
    transition: all 0.3s ease !important;
}

.select2-container--default .select2-selection--single:hover {
    border-color: #3b82f6 !important;
}

.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 34px !important;
    color: #1f2937 !important;
    padding-right: 15px !important;
    font-size: 15px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 48px !important;
    left: 10px !important;
}

.select2-dropdown {
    border: 2px solid #e5e7eb !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

.select2-search--dropdown .select2-search__field {
    border: 2px solid #e5e7eb !important;
    border-radius: 8px !important;
    padding: 10px !important;
    font-size: 14px !important;
}

.select2-results__option {
    padding: 12px 15px !important;
    font-size: 14px !important;
}

.select2-results__option--highlighted {
    background-color: #eff6ff !important;
    color: #1f2937 !important;
}

/* Stock Option in Dropdown */
.select2-stock-option {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.select2-stock-option .stock-main {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.select2-stock-option .stock-name {
    color: #1f2937;
}

.select2-stock-option .stock-symbol {
    color: #6b7280;
    font-size: 13px;
}

.select2-stock-option .stock-details {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 12px;
    color: #6b7280;
}

.select2-stock-option .stock-sector {
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 6px;
}

.select2-stock-option .stock-price {
    font-weight: 600;
    color: #1f2937;
}

.select2-stock-option .stock-change {
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}

.select2-stock-option .stock-change.positive {
    color: #10b981;
    background: #d1fae5;
}

.select2-stock-option .stock-change.negative {
    color: #ef4444;
    background: #fee2e2;
}

/* Quick Picks */
.quick-picks h3 {
    font-size: 16px;
    color: #374151;
    margin-bottom: 12px;
    font-weight: 600;
}

.quick-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quick-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.quick-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.quick-btn:active {
    transform: translateY(0);
}

/* Selected Stock Info */
.selected-stock-info {
    animation: slideDown 0.3s ease;
}

.selected-stock-info h3 {
    font-size: 16px;
    color: #374151;
    margin-bottom: 15px;
    font-weight: 600;
}

.stock-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 25px;
    border-radius: 16px;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.stock-card .stock-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
}

.stock-card .stock-details {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.stock-card .stock-symbol,
.stock-card .stock-sector {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 13px;
}

.stock-card .stock-price {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stock-card .price {
    font-size: 28px;
    font-weight: 700;
}

.stock-card .change {
    font-size: 16px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
}

.stock-card .change.positive {
    background: rgba(16, 185, 129, 0.3);
}

.stock-card .change.negative {
    background: rgba(239, 68, 68, 0.3);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Generate Section */
.generate-section {
    text-align: center;
    margin-bottom: 30px;
}

.generate-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.generate-btn:disabled:hover {
    transform: none;
}

/* Progress Section */
.progress-section {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.progress-section h3 {
    color: #1f2937;
    font-size: 20px;
    margin-bottom: 20px;
}

.progress-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.progress-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #f9fafb;
    border-radius: 10px;
    border-right: 4px solid #e5e7eb;
    transition: all 0.3s ease;
    font-size: 15px;
}

.progress-item.pending {
    border-right-color: #94a3b8;
    color: #64748b;
}

.progress-item.loading {
    border-right-color: #3b82f6;
    background: #eff6ff;
    color: #1e40af;
    animation: pulse 2s infinite;
}

.progress-item.success {
    border-right-color: #10b981;
    background: #d1fae5;
    color: #047857;
}

.progress-item.error {
    border-right-color: #ef4444;
    background: #fee2e2;
    color: #dc2626;
}

.progress-icon {
    font-size: 20px;
    min-width: 24px;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .stock-selection-section {
        padding: 20px;
    }
    
    .quick-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .quick-btn {
        font-size: 0.85rem;
        padding: 10px 15px;
        flex: 1 1 calc(50% - 8px);
        min-width: 140px;
    }
    
    .stock-card {
        padding: 20px;
    }
    
    .stock-card .stock-name {
        font-size: 1.1rem;
    }
    
    .stock-card .price {
        font-size: 1.5rem;
    }
    
    /* تحسينات للـ header actions */
    .header-actions {
        display: flex;
        flex-direction: row;
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 15px;
    }
    
    .back-link {
        font-size: 0.9rem;
        padding: 8px 15px;
    }
    
    /* تحسينات للـ selection container */
    .selection-container {
        padding: 15px;
    }
    
    .search-box label {
        font-size: 0.95rem;
    }
    
    .search-box small {
        font-size: 0.8rem;
    }
    
    .progress-section {
        padding: 20px;
    }
    
    .progress-item {
        font-size: 14px;
        padding: 12px;
    }
}

/* Main Navigation Section - Home Page */
.main-nav-section {
    padding: 60px 40px;
    text-align: center;
}

.main-nav-section h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 40px;
    font-weight: 600;
}

.nav-buttons {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-button {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    min-width: 350px;
    position: relative;
    overflow: hidden;
}

.nav-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.nav-button:active {
    transform: translateY(-2px);
}

.nav-icon {
    font-size: 3rem;
    margin-left: 20px;
    flex-shrink: 0;
}

.nav-content {
    flex: 1;
    text-align: right;
}

.nav-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.nav-content p {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.4;
}

.nav-arrow {
    font-size: 1.5rem;
    margin-right: 15px;
    opacity: 0.7;
    transition: transform 0.3s ease;
}

.nav-button:hover .nav-arrow {
    transform: translateX(-5px);
    opacity: 1;
}

/* Responsive for Main Navigation */
@media (max-width: 768px) {
    .nav-buttons {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .nav-button {
        min-width: 100%;
        max-width: 100%;
        padding: 25px 20px;
    }
    
    .nav-icon {
        font-size: 2.5rem;
        margin-left: 15px;
    }
    
    .nav-content h3 {
        font-size: 1.3rem;
    }
    
    .nav-content p {
        font-size: 0.9rem;
    }
    
    .main-nav-section {
        padding: 30px 15px;
    }
    
    .main-nav-section h2 {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .header p {
        font-size: 1rem;
    }
}

/* تحسينات إضافية للشاشات الصغيرة جداً */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .container {
        border-radius: 15px;
    }
    
    .header {
        padding: 20px 15px;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
    
    .header p {
        font-size: 0.9rem;
    }
    
    .main-nav-section {
        padding: 20px 10px;
    }
    
    .main-nav-section h2 {
        font-size: 1.3rem;
    }
    
    .nav-button {
        padding: 20px 15px;
    }
    
    .nav-icon {
        font-size: 2rem;
    }
    
    .nav-content h3 {
        font-size: 1.1rem;
    }
    
    .nav-content p {
        font-size: 0.85rem;
    }
    
    .footer {
        padding: 15px;
        font-size: 0.85rem;
    }
}
