/* Base Layout Styles */
.profile-container {
    margin: 30px auto;
    padding: 0 15px;
    max-width: 1200px;
}

.profile-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

/* Sidebar Styles */
.profile-sidebar {
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(226, 232, 240, 0.8);
    padding: 30px 24px;
    height: fit-content;
    transition: all 0.3s ease;
}

.sidebar-header {
    display: flex;
    align-items: center;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.sidebar-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
    border: 3px solid rgba(79, 70, 229, 0.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.sidebar-user-name {
    font-weight: 700;
    color: #0f172a;
    font-size: 16px;
    margin-bottom: 3px;
}

.sidebar-user-email {
    font-size: 13px;
    color: #64748b;
    word-break: break-all;
}

/* Sidebar Menu */
.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu-item {
    margin-bottom: 8px;
}

.sidebar-menu-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 12px;
    color: #475569;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-menu-link:hover {
    background-color: rgba(99, 102, 241, 0.05);
    color: #4f46e5;
    transform: translateX(4px);
}

.sidebar-menu-link.active {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.25);
}

.sidebar-menu-icon {
    margin-right: 12px;
    font-size: 16px;
    width: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.sidebar-menu-link:hover .sidebar-menu-icon {
    transform: scale(1.1);
}

/* Profile Card Styles */
.profile-card {
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 16px;
    padding: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* Profile Data Styles */
.profile-data {
    margin-top: 20px;
}

.profile-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.profile-label {
    color: #0f172a;
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.profile-value {
    color: #475569;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #0f172a;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(226, 232, 240, 1);
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.form-control:focus {
    border-color: #6366f1;
    outline: none;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
    transform: translateY(-1px);
}

/* Alert Styles */
.alert {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: none;
}

.alert-success {
    background-color: #dcfce7;
    color: #15803d;
}

.alert-danger {
    background-color: #fee2fee2;
    color: #b91c1c;
}

/* Password Field Styles */
.password-field {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #64748b;
}

/* Logout Link */
.logout-link {
    color: #ef4444;
    text-decoration: none;
    margin-top: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 12px;
}

.logout-link i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.logout-link:hover {
    background-color: rgba(239, 68, 68, 0.05);
    color: #dc2626;
    transform: translateX(4px);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .profile-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .profile-card {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .sidebar-menu {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .sidebar-menu-item {
        margin-bottom: 0;
        flex: 1 0 auto;
        min-width: 110px;
    }
    
    .sidebar-menu-link {
        flex-direction: column;
        text-align: center;
        padding: 12px 8px;
        font-size: 12px;
    }
    
    .sidebar-menu-icon {
        margin-right: 0;
        margin-bottom: 6px;
        font-size: 18px;
    }
}