/* Reset و فونت‌ها */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body.bodydash{
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 0;
    padding: 20px;
    min-height: 100vh; 
    position: relative;
}
/* استایل بادی 
body.bodydash {
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    animation: smoothGradient 25s ease infinite;
    background: linear-gradient(-45deg, 
        #667eea, #764ba2, #4facfe, #00f2fe, 
        #fa709a, #fee140, #a18cd1, #fbc2eb);
    background-size: 400% 400%;
    position: relative;
}

@keyframes smoothGradient {
    0% { background-position: 0% 50%; }
    25% { background-position: 50% 50%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 50% 50%; }
    100% { background-position: 0% 50%; }
}*/

/* افکت نرم‌تر */
body.bodydash::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(2px);
    z-index: -1;
}

/* استایل لوگو */
.logo-minimal {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Arial', sans-serif;
    text-decoration: none;
}

/*
.logo-minimal-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 10px;
    position: relative;
}

.logo-minimal-icon::before {
    content: "⚡";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 18px;
}
*/


.logo-minimal-text {
    font-size: 22px;
    font-weight: bold;
    color: #333;
}

.logo-minimal-text span {
    color: #667eea;
}

/* هدر شیشه‌ای */
.header-modern {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(255, 255, 255, 0.85) 100%);
    padding: 18px 30px;
    border-radius: 20px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.6);
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex: 1;
}

.nav-menu {
    display: flex;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.user-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-welcome {
    text-align: right;
}

.user-welcome .greeting {
    font-size: 14px;
    color: #666;
}

.user-welcome .username {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.logout-btn {
    background: linear-gradient(135deg, #6c757d 0%, #181d49 100%);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 14px;
}

.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 98, 98, 0.4);
}

/* محتوای اصلی */
.dashboard-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

/* کارت پروفایل جدید */
.profile-card {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(255, 255, 255, 0.85) 100%);
    backdrop-filter: blur(20px);
    padding: 35px;
    border-radius: 25px;
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.3),
        inset 0 2px 5px rgba(255, 255, 255, 0.5);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.profile-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(102, 126, 234, 0.3),
        inset 0 2px 5px rgba(255, 255, 255, 0.6);
}

/* هدر پروفایل */
.profile-header {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 35px;
    position: relative;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    color: white;
    font-weight: bold;
    position: relative;
    box-shadow: 
        0 10px 30px rgba(102, 126, 234, 0.4),
        inset 0 -3px 5px rgba(0, 0, 0, 0.2),
        inset 0 3px 5px rgba(255, 255, 255, 0.3);
    border: 4px solid white;
}

.profile-avatar::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    z-index: -1;
    opacity: 0.6;
    filter: blur(10px);
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 28px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 800;
    background: linear-gradient(90deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-email {
    color: #666;
    font-size: 16px;
    margin-bottom: 15px;
    padding: 8px 15px;
    background: rgba(102, 126, 234, 0.08);
    border-radius: 10px;
    display: inline-block;
}

.profile-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: #28a745;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* جزئیات پروفایل */
.profile-details {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 18px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: #666;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-label::before {
    content: '•';
    color: #667eea;
    font-size: 24px;
}

.detail-value {
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.detail-value.highlight {
    color: #764ba2;
    font-weight: 700;
    background: rgba(118, 75, 162, 0.1);
    padding: 6px 15px;
    border-radius: 10px;
}

.detail-value.status-active {
    color: #28a745;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}


.status-icon {
    font-size: 18px;
    animation: bounce 1s infinite;
}


@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}


/* آمار پروفایل */

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
}

.stat-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 22px;
    border-radius: 18px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.15);
    background: linear-gradient(135deg, #ffffff 0%, #f0f2ff 100%);
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 18px 18px 0 0;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: #667eea;
    margin-bottom: 8px;
    line-height: 1;
}

.stat-text {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}


/* رسپانسیو */
@media (max-width: 768px) {
    .header-modern {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 15px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 10px;
    }
    
    .user-section {
        flex-direction: column;
        text-align: center;
    }
    
    body.bodydash {
        padding: 10px;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .profile-card {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .profile-stats {
        grid-template-columns: 1fr;
    }
    
    .profile-avatar {
        width: 80px;
        height: 80px;
        font-size: 36px;
    }
    
    .profile-name {
        font-size: 24px;
    }
}