body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8f9fa;
    color: #191c1d;
    line-height: 1.6;
}

.profile-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Background Blurs */
.bg-blur-1 {
    position: fixed;
    width: 600px;
    height: 600px;
    left: -200px;
    top: -100px;
    background: radial-gradient(circle, rgba(0, 89, 187, 0.08) 0%, rgba(0, 89, 187, 0) 70%);
    z-index: -1;
}

.bg-blur-2 {
    position: fixed;
    width: 600px;
    height: 600px;
    right: -200px;
    bottom: -100px;
    background: radial-gradient(circle, rgba(64, 94, 150, 0.08) 0%, rgba(64, 94, 150, 0) 70%);
    z-index: -1;
}

/* Header */
.main-header {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    height: 72px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
    letter-spacing: -0.02em;
    color: #191c1d;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #6c757d;
}

.breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #0059bb;
}

.breadcrumb .current {
    color: #191c1d;
    font-weight: 500;
}

/* Main Area */
.main-container {
    flex: 1;
    padding-top: 48px;
    padding-bottom: 64px;
}

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

/* Sidebar */
.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.profile-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.mini-info {
    text-align: center;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0059bb, #0070ea);
    color: #fff;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 28px;
    box-shadow: 0 8px 16px rgba(0, 89, 187, 0.15);
}

.mini-info h2 {
    font-size: 18px;
    margin: 0 0 4px 0;
    font-weight: 700;
}

.mini-info p {
    font-size: 13px;
    color: #6c757d;
    margin: 0;
}

.side-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #414754;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.nav-btn img {
    width: 20px;
    height: 20px;
    opacity: 0.6;
}

.nav-btn:hover {
    background: rgba(0, 0, 0, 0.03);
}

.nav-btn.active {
    background: rgba(0, 89, 187, 0.08);
    color: #0059bb;
    border-color: rgba(0, 89, 187, 0.1);
}

.nav-btn.active img {
    opacity: 1;
}

/* Content Area */
.profile-content {
    min-width: 0;
}

.section-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    animation: slideRight 0.4s ease-out;
    width: 100%;
    max-width: 680px; /* narrowed to reach 'perfect' width */
    box-sizing: border-box;
    min-height: 480px;
}

@keyframes slideRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 32px 0;
    color: #191c1d;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 0px;
}

.info-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #0059bb;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.info-group p {
    font-size: 15px;
    font-weight: 500;
    margin: 0;
    color: #191c1d;
    word-break: break-all; /* Ensure long emails don't push width */
}

/* Form Styles */
.profile-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #414754;
}

.form-group input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    background: #f8f9fa;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
}

.form-group input:focus {
    background: #fff;
    border-color: #0059bb;
    box-shadow: 0 0 0 4px rgba(0, 89, 187, 0.08);
}

.save-btn {
    background: linear-gradient(135deg, #0059bb, #0070ea);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px 24px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 89, 187, 0.25);
    transition: opacity 0.2s;
    width: fit-content;
    margin-top: 8px;
}

.save-btn:hover {
    opacity: 0.9;
}

@media (max-width: 900px) {
    .profile-layout {
        grid-template-columns: 1fr;
    }
}
/* Admin Dashboard */
.dashboard-card {
    max-width: 820px; /* Increased width for dashboard */
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.stat-pill {
    padding: 4px 12px;
    background: #dc2626;
    color: #fff;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.admin-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.admin-module {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    border: 1px solid transparent;
    width: 100%;
    box-sizing: border-box;
}

.admin-module:hover {
    background: #fff;
    border-color: rgba(0, 89, 187, 0.1);
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.module-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.module-icon.components { background: rgba(0, 89, 187, 0.1); color: #0059bb; }
.module-icon.users { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.module-icon.analytics { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }

.module-info {
    flex: 1;
}

.module-info h4 {
    margin: 0 0 2px 0;
    font-size: 15px;
    font-weight: 700;
}

.module-info p {
     margin: 0;
     font-size: 12px;
     color: #6c757d;
}

.chevron {
    opacity: 0.3;
}

/* Admin Entry Card */
.admin-entry-card {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px dashed rgba(0, 0, 0, 0.08);
}

.admin-entry-content {
    background: linear-gradient(135deg, #0059bb08, #0059bb12);
    border: 1px solid #0059bb20;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.admin-entry-text h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 700;
    color: #0059bb;
}

.admin-entry-text p {
    margin: 0;
    font-size: 13px;
    color: #414754;
}

.admin-action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #0059bb;
    color: #fff;
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
}

.admin-action-btn:hover {
    background: #004494;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 89, 187, 0.2);
}

@media (max-width: 600px) {
    .admin-entry-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Footer Section */
.footer {
    margin-top: auto;
    padding: 32px 0;
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
    color: #6c757d;
    font-size: 13px;
}
