/* CSS Variables for Professional Theming */
:root {
    --primary-color: #0b5ed7; /* professional blue */
    --secondary-color: #0a58ca;
    --text-color: #0f172a; /* near-black professional */
    --bg-color: #f7fafc; /* light neutral */
    --card-bg: #fff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Lato', sans-serif;
    --font-arabic: 'Cairo', sans-serif;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, #f7fafc 0%, #e0f2fe 25%, #f0f4ff 50%, #fef3c7 75%, #fce7f3 100%);
    background-attachment: fixed;
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    scroll-behavior: smooth;
    direction: ltr;
    overflow-x: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body.rtl {
    direction: rtl;
    font-family: var(--font-arabic);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
#navbar {
    position: sticky;
    top: 0;
    background: rgba(255,255,255,0.98);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color);
}

.nav-links {
    display: flex;
    gap: 1rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--primary-color);
    transition: width 0.3s;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

#lang-switch {
    background: linear-gradient(135deg, #0b5ed7, #0a58ca);
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    border-radius: 5px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(11, 94, 215, 0.25);
}

#lang-switch:hover {
    background: linear-gradient(135deg, #0a58ca, #0951b8);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(11, 94, 215, 0.35);
}

#lang-switch::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

#lang-switch:active::before {
    width: 300px;
    height: 300px;
}

/* Sections */
.section {
    padding: 3rem 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Alternate section background colors */
#home {
    background: linear-gradient(135deg, rgba(207, 250, 254, 0.3) 0%, rgba(224, 242, 254, 0.3) 100%);
}

#about {
    background: linear-gradient(135deg, rgba(240, 244, 255, 0.4) 0%, rgba(243, 232, 255, 0.4) 100%);
}

#portfolio {
    background: linear-gradient(135deg, rgba(254, 243, 199, 0.2) 0%, rgba(254, 231, 243, 0.2) 100%);
}

#contact {
    background: linear-gradient(135deg, rgba(220, 253, 244, 0.3) 0%, rgba(224, 242, 254, 0.3) 100%);
}

.cta-btn {
    display: inline-block;
    background: linear-gradient(135deg, #0b5ed7, #0a58ca);
    color: #fff;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    transition: var(--transition);
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(11, 94, 215, 0.3);
    font-weight: 600;
}

.cta-btn:hover {
    background: linear-gradient(135deg, #0a58ca, #0951b8);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(11, 94, 215, 0.4);
}

/* Home */
#home-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    animation: fadeInUp 1s ease;
    background: linear-gradient(135deg, #0b5ed7 0%, #0a58ca 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#home-subtitle {
    font-size: 1.2rem;
    background: linear-gradient(90deg, #0b5ed7, #0a58ca, #0b5ed7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    border-right: 3px solid var(--primary-color);
    padding-right: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    animation: typing 3s steps(40, end);
}

#home-intro {
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 1s ease 0.5s both;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

/* Section Headers Styling */
.section h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #0b5ed7, #0a58ca);
    border-radius: 2px;
}

/* Pricing Banner */
.pricing-banner {
    max-width: 900px;
    margin: 0.5rem auto 1.5rem;
    padding: 0.8rem 1rem;
    background: linear-gradient(90deg, rgba(11,94,215,0.08), rgba(10,88,202,0.06));
    border-radius: 8px;
    border: 1px solid rgba(11,94,215,0.08);
    text-align: center;
    color: var(--text-color);
    box-shadow: 0 6px 18px rgba(11,94,215,0.06);
}

.pricing-banner p { margin: 0; font-weight: 600; }
.pricing-banner strong { color: #0b5ed7; }

.contact-email { margin-top: 0.6rem; font-size: 0.95rem; color: #234; text-align: center; }
.contact-email a { color: #0b5ed7; text-decoration: underline; font-weight: 700; }

.footer-email { color: #fff; margin-left: 0.75rem; text-decoration: none; font-weight: 600; }

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    cursor: pointer;
    border-top: 4px solid var(--primary-color);
}

.project-card:hover {
    box-shadow: 0 8px 32px rgba(11, 94, 215, 0.15);
    transform: translateY(-4px);
    border-top-color: #0a58ca;
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    background: linear-gradient(135deg, #0b5ed7, #0a58ca);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.project-info p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.view-more-btn {
    background: linear-gradient(135deg, #0b5ed7, #0a58ca);
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(11, 94, 215, 0.25);
}

.view-more-btn:hover {
    background: linear-gradient(135deg, #0a58ca, #0951b8);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(11, 94, 215, 0.35);
}

.project-tag {
    display: inline-block;
    background: var(--bg-color);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 2rem auto;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0b5ed7;
    box-shadow: 0 0 0 4px rgba(11, 94, 215, 0.2);
    background: linear-gradient(to bottom, #fff, rgba(11, 94, 215, 0.02));
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-btn {
    width: 100%;
    background: linear-gradient(135deg, #0b5ed7, #0a58ca);
    color: #fff;
    padding: 0.75rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(11, 94, 215, 0.3);
}

.form-btn:hover {
    background: linear-gradient(135deg, #0a58ca, #0951b8);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(11, 94, 215, 0.4);
}

.error-message {
    color: #d32f2f;
    font-size: 0.85rem;
    margin-top: 0.3rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

.modal-close:hover {
    color: var(--primary-color);
}

/* Footer */
footer {
    background: var(--text-color);
    color: #fff;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

.footer-social {
    margin-bottom: 1rem;
}

.footer-social a {
    color: #fff;
    margin: 0 1rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: var(--primary-color);
}

/* Filter Buttons */
.filter-btn {
    background: var(--card-bg);
    color: var(--text-color);
    border: 2px solid #ddd;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    margin-right: 0.5rem;
    font-size: 0.95rem;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(11, 94, 215, 0.2);
}

.filter-btn.active {
    background: linear-gradient(135deg, #0b5ed7, #0a58ca);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(11, 94, 215, 0.3);
}

.filter-buttons {
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* About Section Skills List */
#skills-list {
    list-style: none;
    margin-top: 1.5rem;
}

#skills-list li {
    padding: 0.75rem 0;
    font-size: 1rem;
    color: var(--text-color);
    border-left: 3px solid var(--primary-color);
    padding-left: 1rem;
    transition: var(--transition);
}

#skills-list li:hover {
    transform: translateX(10px);
    border-left-color: #0a58ca;
}

#skills-list i {
    color: var(--primary-color);
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        gap: 0.5rem;
        font-size: 0.9rem;
    }

    #home-title {
        font-size: 1.8rem;
    }

    #home-subtitle {
        font-size: 1rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        max-width: 90vw;
        padding: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

@media (max-width: 600px) {
    body {
        font-size: 14px;
    }
    
    .nav-container {
        padding: 0.75rem 12px;
        flex-wrap: wrap;
    }
    
    .nav-links {
        gap: 0.3rem;
        font-size: 0.8rem;
    }
    
    #lang-switch {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
    }
    
    #home-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    #home-subtitle {
        font-size: 0.9rem;
        white-space: normal;
        border-right: none;
        border-bottom: 2px solid var(--primary-color);
        padding-bottom: 0.5rem;
        padding-right: 0;
        animation: none;
    }
    
    #home-intro {
        font-size: 0.9rem;
    }
    
    .cta-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .section h2 {
        font-size: 1.3rem;
    }
    
    .section h2::after {
        width: 40px;
        height: 3px;
    }
    
    .portfolio-grid {
        gap: 1rem;
    }
    
    .project-card img {
        height: 150px;
    }
    
    .contact-form {
        padding: 1rem;
        max-width: 100%;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 16px;
    }
}

/* Assistant Chat Widget Styles - Modern Design */
.assistant-toggle {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0b5ed7 0%, #0a58ca 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
    z-index: 3000;
    box-shadow: 0 12px 32px rgba(11, 94, 215, 0.35);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: none;
}

.assistant-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 16px 40px rgba(11, 94, 215, 0.45);
}

.assistant-toggle-icon {
    position: relative;
    z-index: 2;
}

.assistant-toggle-pulse {
    position: absolute;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(11, 94, 215, 0.2);
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.assistant {
    position: fixed;
    right: 24px;
    bottom: 104px;
    width: 400px;
    max-width: calc(100vw - 48px);
    height: 600px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 3000;
    animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.assistant[aria-hidden="true"] { display: none; }

.assistant-header {
    padding: 20px;
    background: linear-gradient(135deg, #0b5ed7 0%, #0a58ca 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.assistant-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.assistant-header-content {
    display: flex;
    gap: 12px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.assistant-header-icon {
    font-size: 28px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.assistant-header-subtitle {
    font-size: 0.85rem;
    opacity: 0.9;
    margin: 4px 0 0 0;
}

.assistant-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.assistant-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.assistant-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: linear-gradient(180deg, #f8f9fa 0%, #f0f4ff 100%);
    display: flex;
    flex-direction: column;
}

.assistant-messages {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.assistant-messages li {
    max-width: 85%;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.4;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.assistant-messages li.user {
    background: linear-gradient(135deg, #0b5ed7 0%, #0a58ca 100%);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 12px rgba(11, 94, 215, 0.2);
}

.assistant-messages li.bot {
    background: #fff;
    color: var(--text-color);
    align-self: flex-start;
    border: 1px solid #e6eef9;
    border-bottom-left-radius: 4px;
}

.assistant-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border-top: 1px solid #e6eef9;
    background: #fff;
}

.assistant-quick {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.quick-btn {
    background: #f3f4f6;
    border: 1.5px solid #e5e7eb;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.quick-btn:hover {
    border-color: #0b5ed7;
    background: #eff6ff;
    color: #0b5ed7;
}

.quick-btn:active {
    transform: scale(0.95);
}

.assistant-input-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.assistant-input {
    flex: 1;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1.5px solid #e6eef9;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    transition: all 0.2s;
}

.assistant-input:focus {
    outline: none;
    border-color: #0b5ed7;
    box-shadow: 0 0 0 3px rgba(11, 94, 215, 0.1);
    background: #f8f9fa;
}

.assistant-attach {
    width: 38px;
    height: 38px;
    background: #f3f4f6;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.assistant-attach:hover {
    border-color: #0b5ed7;
    background: #eff6ff;
    color: #0b5ed7;
}

.assistant-send {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #0b5ed7 0%, #0a58ca 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(11, 94, 215, 0.2);
}

.assistant-send:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(11, 94, 215, 0.3);
}

.assistant-send:active {
    transform: scale(0.95);
}

.assistant-file-thumb {
    width: 64px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e6eef9;
    margin-right: 6px;
}

.assistant .assistant-files-row {
    display: flex;
    gap: 8px;
    padding: 8px 12px;
}

@media (max-width: 480px) {
    .assistant {
        right: 12px;
        left: 12px;
        width: auto;
        bottom: 80px;
        height: 520px;
    }
    .assistant-toggle {
        right: 12px;
        bottom: 12px;
    }
    .quick-btn { flex: 1; justify-content: center; }
    .assistant-messages li { max-width: 90%; }
}

/* ========== Admin Dashboard Styles ========== */
.admin-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 2rem;
    max-width: 400px;
    width: 100%;
    display: none;
}

.login-container.show {
    display: block;
}

.login-container h1 {
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
}

.login-container .form-group {
    margin-bottom: 1rem;
}

.login-container label {
    display: block;
    color: #555;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.login-container input {
    width: 100%;
    padding: 0.75rem;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.login-container input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.login-btn {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.dashboard-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 1200px;
    width: 100%;
    display: none;
    overflow: hidden;
}

.dashboard-container.show {
    display: flex;
    flex-direction: column;
}

.dashboard-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.dashboard-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.dashboard-header h1 {
    font-size: 1.8rem;
    position: relative;
    z-index: 1;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.dashboard-content {
    padding: 2rem;
    overflow-y: auto;
    max-height: calc(100vh - 200px);
}

.tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #f0f0f0;
}

.tab-btn {
    padding: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    color: #999;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    position: relative;
    bottom: -2px;
}

.tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.tab-content {
    display: none;
}

.tab-content.show {
    display: block;
}

.message-card {
    background: #f9f9f9;
    border-left: 4px solid #667eea;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    transition: all 0.3s;
}

.message-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateX(4px);
}

.message-card h3 {
    color: #333;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.message-card .time {
    font-size: 0.85rem;
    color: #999;
    font-weight: normal;
}

.message-card p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.message-card .label {
    display: inline-block;
    background: #667eea;
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    margin-right: 0.5rem;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #999;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.delete-btn {
    background: #ff4757;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s;
    margin-top: 0.5rem;
}

.delete-btn:hover {
    background: #ff3838;
}

.refresh-btn {
    background: #667eea;
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    margin-right: 0.5rem;
}

.refresh-btn:hover {
    background: #5568d3;
}

@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
    }

    .tabs {
        flex-wrap: wrap;
    }

    .dashboard-content {
        max-height: calc(100vh - 240px);
    }
}

