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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #fafafa;
    color: #1a1a1a;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Sidebar styles */
.sidebar {
    width: 240px;
    background: #f5f4f0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e5e5e5;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.logo-container {
    padding: 24px;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.logo {
    width: 32px;
    height: 32px;
}

.logo-text {
    font-size: 22px;
    font-weight: 500;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

.logo-arabic {
    font-size: 16px;
    color: #716d52;
    font-weight: 400;
}

/* Navigation */
.nav-menu {
    padding: 16px 12px;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: #666;
    font-size: 14px;
    margin-bottom: 4px;
    transition: all 0.2s ease;
}

.nav-item:hover {
    background: #e8e7e3;
    color: #1a1a1a;
}

.nav-item.active {
    background: #e8e7e3;
    color: #1a1a1a;
    font-weight: 500;
}

.nav-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Sidebar footer */
.sidebar-footer {
    padding: 16px;
    border-top: 1px solid #e5e5e5;
}

.nav-item.support {
    margin-bottom: 16px;
}

.more-options-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-bottom: 16px;
    color: #666;
}

.more-options-btn:hover {
    color: #1a1a1a;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #e8e7e3;
    border-radius: 8px;
    cursor: pointer;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: #1a1a1a;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
}

.user-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
}

.user-role {
    font-size: 12px;
    color: #666;
}

.dropdown-icon {
    color: #666;
}

/* Dropdown menus */
.dropdown-menu {
    position: fixed;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    min-width: 200px;
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: #374151;
    text-decoration: none;
    transition: background-color 0.2s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
}

.dropdown-item:hover {
    background-color: #f3f4f6;
}

.dropdown-divider {
    height: 1px;
    background-color: #e5e7eb;
    margin: 4px 0;
}

.logout-btn {
    color: #ef4444;
}

/* Main content */
.main-content {
    flex: 1;
    margin-left: 240px;
    padding: 32px;
    max-width: 1200px;
    margin-right: auto;
}

.page-header {
    margin-bottom: 32px;
}

.page-title {
    font-size: 32px;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.page-subtitle {
    font-size: 16px;
    color: #666;
}

/* Support container */
.support-container {
    display: flex;
    flex-direction: column;
}

.support-container > * {
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 48px;
}

.support-container > *:last-child {
    border-bottom: none;
}

/* Contact section */
.contact-section {
    max-width: 1100px;
    margin: 0 auto 48px;
    padding: 0 20px;
}

.contact-section h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 32px;
    color: #1a1a1a;
    text-align: center;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

@media (max-width: 1024px) {
    .contact-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .contact-cards {
        grid-template-columns: 1fr;
    }
}

.contact-card {
    background: white;
    border-radius: 16px;
    padding: 40px 32px;
    text-align: center;
    border: 1px solid #e5e5e5;
    transition: all 0.2s;
}

.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.contact-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.email-icon {
    background-color: #E3F2FD;
    color: #1976D2;
}

.phone-icon {
    background-color: #FCE4EC;
    color: #C2185B;
}

.chat-icon {
    background-color: #f5f4f0;
    color: #716d52;
}

.contact-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1f2937;
}

.contact-card p {
    color: #6b7280;
    margin-bottom: 16px;
    font-size: 14px;
}

.contact-link {
    color: #716d52;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.contact-link:hover {
    color: #1a1a1a;
}

.chat-btn {
    background: #1a1a1a;
    color: white;
    padding: 8px 24px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 400;
}

.chat-btn:hover {
    background: #000000;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* FAQ section */
.faq-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 20px;
}

.faq-section h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 32px;
    color: #1a1a1a;
    text-align: center;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.faq-item {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s;
    width: 100%;
    margin: 0 auto;
}

.faq-item:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.faq-item[open] {
    border-color: #d0d0d0;
}

.faq-item summary {
    padding: 24px 32px;
    cursor: pointer;
    font-weight: 500;
    color: #1a1a1a;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
    font-size: 16px;
}

.faq-item summary:hover {
    background-color: #f9fafb;
}

.faq-item summary::after {
    content: '+';
    font-size: 24px;
    color: #666;
    transition: transform 0.2s;
    font-weight: 300;
    line-height: 1;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item[open] summary {
    border-bottom: 1px solid #e5e5e5;
}

.faq-item p {
    padding: 0 32px 24px;
    color: #666;
    line-height: 1.6;
    font-size: 15px;
}

/* Resources section */
.resources-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 20px;
}

.resources-section h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 32px;
    color: #1a1a1a;
    text-align: center;
}

.resource-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 1024px) {
    .resource-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .resource-cards {
        grid-template-columns: 1fr;
    }
}

.resource-card {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 40px 24px;
    text-decoration: none;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 220px;
}

.resource-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.resource-icon {
    width: 48px;
    height: 48px;
    color: #716d52;
    margin-bottom: 16px;
}

.resource-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.resource-card p {
    font-size: 14px;
    color: #6b7280;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 60px;
    }
    
    .logo-text,
    .nav-item span,
    .user-info,
    .profile-arrow {
        display: none;
    }
    
    .logo-container {
        justify-content: center;
        padding: 16px;
    }
    
    .user-profile {
        padding: 8px;
        justify-content: center;
    }
    
    .main-content {
        margin-left: 60px;
        padding: 16px;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .contact-cards,
    .resource-cards {
        grid-template-columns: 1fr;
    }
}