/* Profile Sidebar Styles */
.profile-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    pointer-events: none;
}

.profile-sidebar.show {
    display: block;
    pointer-events: auto;
}

.sidebar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.sidebar-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    max-width: 90vw;
    height: 100%;
    background-color: #ffffff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    animation: slideInRight 0.3s ease;
    overflow-y: auto;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 2px solid var(--accent-color, #0066cc);
    background-color: #f5f7fa;
    flex-shrink: 0;
}

.sidebar-header h2 {
    margin: 0;
    color: var(--accent-color-dark, #003366);
    font-size: 1.5rem;
    font-weight: 700;
}

.sidebar-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666666;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    transition: color 0.2s ease, background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
}

.sidebar-close:hover {
    color: var(--accent-color-dark, #003366);
    background-color: #e0e0e0;
}

.sidebar-body {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 0;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 2rem;
}

.profile-avatar {
    font-size: 5rem;
    color: var(--accent-color, #0066cc);
    margin-bottom: 1rem;
}

.profile-info h3 {
    margin: 0 0 0.5rem 0;
    color: var(--accent-color-dark, #003366);
    font-size: 1.5rem;
    font-weight: 700;
}

.profile-info p {
    margin: 0;
    color: #666666;
    font-size: 1rem;
}

.profile-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-label {
    font-weight: 600;
    color: #4d4d4d;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-label i {
    color: var(--accent-color, #0066cc);
    width: 20px;
}

.detail-value {
    color: #2c3e50;
    font-size: 1rem;
    padding-left: 1.75rem;
}

.sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 2px solid #e0e0e0;
}

.sidebar-action-btn {
    padding: 1rem 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background-color: #ffffff;
    color: var(--accent-color-dark, #003366);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-align: left;
}

.sidebar-action-btn:hover {
    background-color: #e6f2ff;
    border-color: var(--accent-color, #0066cc);
    color: var(--accent-color, #0066cc);
}

.sidebar-action-btn#profile-logout {
    border-color: #f44336;
    color: #f44336;
}

.sidebar-action-btn#profile-logout:hover {
    background-color: #ffebee;
    border-color: #d32f2f;
    color: #d32f2f;
}

.sidebar-action-btn i {
    font-size: 1.125rem;
}

/* Tablet Mode Styles */
body.tablet-mode .sidebar-content {
    width: 600px;
}

body.tablet-mode .sidebar-header {
    padding: 2rem 2.5rem;
}

body.tablet-mode .sidebar-header h2 {
    font-size: 2.5rem;
}

body.tablet-mode .sidebar-close {
    font-size: 2rem;
    width: 48px;
    height: 48px;
}

body.tablet-mode .sidebar-body {
    padding: 2.5rem;
}

body.tablet-mode .profile-section {
    padding: 1.5rem 0;
}

body.tablet-mode .profile-avatar {
    font-size: 4rem;
    margin-bottom: 0.75rem;
}

body.tablet-mode .profile-info h3 {
    font-size: 2rem;
}

body.tablet-mode .profile-info p {
    font-size: 1.5rem;
}

body.tablet-mode .detail-label {
    font-size: 1.75rem;
}

body.tablet-mode .detail-label i {
    width: 28px;
}

body.tablet-mode .detail-value {
    font-size: 1.75rem;
    padding-left: 2.5rem;
}

body.tablet-mode .sidebar-action-btn {
    font-size: 1.75rem;
    padding: 1.5rem 2rem;
}

body.tablet-mode .sidebar-action-btn i {
    font-size: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar-content {
        width: 100%;
        max-width: 100%;
    }
}

