/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Full Page Container */
body {
    background: #f5f7fa;
    min-height: 100vh;
}

.container {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 2rem 3rem;
    min-height: calc(100vh - 60px);
}

.header {
    margin-bottom: 3rem;
    animation: slideDown 0.6s ease-out;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #5f6368;
}

.header p {
    color: #5a6c7d;
    font-size: 1.1rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #e1e8ed;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out backwards;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #5f6368 0%, #9e9e9e 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(95, 99, 104, 0.15);
    border-color: #5f6368;
}

.card:hover::before {
    opacity: 1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #2c3e50;
}

.edit-btn {
    background: #f0f3f5;
    border: 1px solid #5f6368;
    color: #5f6368;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.edit-btn:hover {
    background: #5f6368;
    color: white;
    transform: scale(1.05);
}

.info-item {
    margin-bottom: 1.2rem;
}

.info-label {
    color: #5a6c7d;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.info-value {
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 500;
    font-family: 'JetBrains Mono', monospace;
}

.profile-card {
    grid-column: 1 / -1;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5f6368 0%, #9e9e9e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(95, 99, 104, 0.3);
    position: relative;
}

.avatar::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px solid rgba(95, 99, 104, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.profile-email {
    color: #5a6c7d;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.profile-stats {
    display: flex;
    gap: 2rem;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #5f6368;
}

.stat-label {
    color: #5a6c7d;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Modal Styles - Hidden by default, centered popup */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    border: 1px solid #e1e8ed;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
}

.close {
    color: #5a6c7d;
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
    line-height: 1;
}

.close:hover {
    background: #f5f7fa;
    color: #e74c3c;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    color: #2c3e50;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-input {
    width: 100%;
    background: #f8f9fa;
    border: 1px solid #e1e8ed;
    color: #2c3e50;
    padding: 0.875rem 1rem;
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #5f6368;
    background: white;
    box-shadow: 0 0 0 3px rgba(95, 99, 104, 0.1);
}

.password-input-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #5a6c7d;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #5f6368;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-cancel {
    flex: 1;
    background: #f5f7fa;
    color: #5a6c7d;
    border: 1px solid #e1e8ed;
    padding: 0.875rem 1.5rem;
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background: #e1e8ed;
    color: #2c3e50;
}

.btn-save {
    flex: 1;
    background: linear-gradient(135deg, #5f6368 0%, #9e9e9e 100%);
    color: white;
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(95, 99, 104, 0.4);
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 500;
    z-index: 2000;
    animation: slideIn 0.3s ease-out;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    min-width: 300px;
    transition: opacity 0.3s ease;
}

.notification.success {
    background: #10b981;
    color: white;
    border: 1px solid #059669;
}

.notification.error {
    background: #ef4444;
    color: white;
    border: 1px solid #dc2626;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.05);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .profile-card {
        flex-direction: column;
        text-align: center;
    }

    .profile-stats {
        justify-content: center;
    }

    .header h1 {
        font-size: 2rem;
    }

    .modal-content {
        padding: 1.5rem;
        width: 95%;
    }

    .modal-footer {
        flex-direction: column;
    }
}
