/*
 * BizFlow Profile Dashboard Styles
 * Complete styling for user profile management system
 */

/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #000000;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container Layout */
.container {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* Sidebar (using existing styles) */
.sidebar {
    width: 220px;
    background: linear-gradient(135deg, #f1c40f, #f39c12);
    padding: 1.5rem 0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 100;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.logo {
    padding: 0 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 0.5rem;
    flex-shrink: 0;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #000000;
    letter-spacing: -1px;
    margin-bottom: 0;
}

.nav-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 1rem;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    text-decoration: none;
    color: #000000;
    width: 100%;
    box-sizing: border-box;
}

.nav-link:hover {
    background-color: rgba(0, 0, 0, 0.1);
    border-left-color: #000000;
    transform: translateX(5px);
    text-decoration: none;
}

.nav-item.active .nav-link {
    background-color: rgba(0, 0, 0, 0.15);
    border-left-color: #000000;
    transform: translateX(5px);
}

.nav-icon {
    font-size: 1rem;
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
    color: #000000;
    transition: transform 0.15s ease;
}

.nav-text {
    font-size: 1rem;
    font-weight: 500;
    color: #000000;
    transition: color 0.15s ease;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem;
    background-color: #000000;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Profile Header */
.profile-header {
    background: linear-gradient(135deg, #1a1a1a, #333333);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #555555;
}

.profile-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.profile-avatar-section {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.profile-avatar {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #f1c40f;
    box-shadow: 0 8px 25px rgba(241, 196, 15, 0.3);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-upload-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1c40f;
    border: 2px solid #000000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.avatar-upload-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(241, 196, 15, 0.4);
}

.upload-icon {
    font-size: 1rem;
}

.profile-basic-info {
    flex: 1;
}

.profile-name {
    font-size: 2.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.profile-role {
    font-size: 1.2rem;
    color: #f1c40f;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.profile-company {
    font-size: 1rem;
    color: #cccccc;
    margin-bottom: 1rem;
}

.profile-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #2ecc71;
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.5);
}

.status-indicator.offline {
    background: #95a5a6;
    box-shadow: 0 0 10px rgba(149, 165, 166, 0.5);
}

.status-text {
    color: #cccccc;
    font-size: 0.9rem;
}

.profile-header-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

/* Buttons */
.btn {
    background: linear-gradient(135deg, #f1c40f, #f39c12);
    color: #000000;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(241, 196, 15, 0.3);
}

.btn-secondary {
    background: #333333;
    color: #ffffff;
    border: 1px solid #555555;
}

.btn-secondary:hover {
    background: #444444;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #ffffff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.btn-icon {
    font-size: 1rem;
}

/* Profile Stats */
.profile-stats-section {
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: linear-gradient(135deg, #1a1a1a, #333333);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #555555;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.1);
}

.stat-icon {
    font-size: 2rem;
    opacity: 0.8;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #f1c40f;
    display: block;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    color: #cccccc;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Profile Tabs */
.profile-tabs-section {
    background: #1a1a1a;
    border-radius: 16px;
    border: 1px solid #333333;
    overflow: hidden;
}

.tab-navigation {
    background: #333333;
    padding: 0;
    display: flex;
    border-bottom: 1px solid #555555;
    overflow-x: auto;
}

.tab-btn {
    background: none;
    border: none;
    color: #cccccc;
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.tab-btn.active {
    color: #f1c40f;
    border-bottom-color: #f1c40f;
    background: rgba(241, 196, 15, 0.1);
}

.tab-content {
    display: none;
    padding: 2rem;
}

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

/* Overview Tab */
.overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.overview-card {
    background: #333333;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #555555;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #555555;
}

.card-header h3 {
    color: #ffffff;
    font-size: 1.1rem;
    margin: 0;
}

.view-all-btn {
    background: none;
    border: none;
    color: #f1c40f;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0;
}

.view-all-btn:hover {
    text-decoration: underline;
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: #1a1a1a;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.activity-item:hover {
    background: #2a2a2a;
}

.activity-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #333333;
    border-radius: 8px;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-title {
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.activity-time {
    color: #888888;
    font-size: 0.85rem;
    margin: 0;
}

/* Quick Stats */
.quick-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.quick-stat {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-label {
    color: #cccccc;
    font-size: 0.9rem;
    font-weight: 500;
}

.stat-progress {
    height: 8px;
    background: #1a1a1a;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #f1c40f, #f39c12);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.stat-value {
    color: #f1c40f;
    font-weight: 600;
    font-size: 0.9rem;
}

.stat-value-large {
    color: #f1c40f;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

/* Achievements */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.achievement-badge {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid #333333;
}

.achievement-badge.earned {
    border-color: #f1c40f;
    background: rgba(241, 196, 15, 0.1);
}

.achievement-badge:hover {
    transform: translateY(-2px);
}

.achievement-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.achievement-badge.earned .achievement-icon {
    opacity: 1;
}

.achievement-name {
    color: #cccccc;
    font-size: 0.8rem;
    font-weight: 500;
}

.achievement-badge.earned .achievement-name {
    color: #f1c40f;
}

/* Form Sections */
.form-section {
    max-width: 800px;
}

.form-section h3 {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #333333;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-input {
    background-color: #333333;
    border: 2px solid #555555;
    border-radius: 8px;
    padding: 0.75rem;
    color: #ffffff;
    font-size: 0.9rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #f1c40f;
    box-shadow: 0 0 0 3px rgba(241, 196, 15, 0.1);
}

.form-input::placeholder {
    color: #888888;
}

.form-input[readonly] {
    background-color: #2a2a2a;
    border-color: #444444;
    cursor: not-allowed;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #333333;
}

/* Security Sections */
.security-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.security-option {
    background: #333333;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #555555;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.option-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.option-icon {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    border-radius: 10px;
}

.option-details h4 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.option-details p {
    color: #cccccc;
    font-size: 0.9rem;
    margin: 0;
}

.option-toggle {
    display: flex;
    align-items: center;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 50px;
    height: 24px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #555555;
    border-radius: 24px;
    transition: 0.3s;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #ffffff;
    border-radius: 50%;
    transition: 0.3s;
}

input:checked+.toggle-slider {
    background-color: #f1c40f;
}

input:checked+.toggle-slider:before {
    transform: translateX(26px);
}

/* Password Strength */
.password-strength {
    margin-top: 0.5rem;
}

.strength-bar {
    height: 4px;
    background: #333333;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    margin-bottom: 0.5rem;
}

.strength-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: #e74c3c;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.strength-bar.weak::after {
    width: 25%;
    background: #e74c3c;
}

.strength-bar.fair::after {
    width: 50%;
    background: #f39c12;
}

.strength-bar.good::after {
    width: 75%;
    background: #f1c40f;
}

.strength-bar.strong::after {
    width: 100%;
    background: #2ecc71;
}

.strength-text {
    color: #888888;
    font-size: 0.8rem;
}

/* Active Sessions */
.sessions-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.session-item {
    background: #333333;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #555555;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.session-item.current {
    border-color: #f1c40f;
    background: rgba(241, 196, 15, 0.1);
}

.session-info {
    flex: 1;
}

.session-device {
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.session-details {
    color: #cccccc;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.session-time {
    color: #888888;
    font-size: 0.8rem;
}

/* Notifications */
.notification-categories {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.notification-category h4 {
    color: #f1c40f;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #333333;
}

.notification-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notification-option {
    background: #333333;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #555555;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    color: #ffffff;
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    background: #555555;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000000;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked+.checkmark {
    background: #f1c40f;
}

.checkbox-label input[type="checkbox"]:checked+.checkmark::after {
    opacity: 1;
}

/* Activity Timeline */
.activity-section {
    max-width: 800px;
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.activity-header h3 {
    color: #ffffff;
    font-size: 1.3rem;
    margin: 0;
}

.activity-filters {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.activity-timeline {
    position: relative;
    padding-left: 2rem;
}

.activity-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #333333;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.timeline-marker {
    position: absolute;
    left: -2rem;
    top: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 1;
}

.timeline-marker.login {
    background: #3498db;
    color: #ffffff;
}

.timeline-marker.update {
    background: #f39c12;
    color: #ffffff;
}

.timeline-marker.security {
    background: #e74c3c;
    color: #ffffff;
}

.timeline-marker.project {
    background: #2ecc71;
    color: #ffffff;
}

.timeline-content {
    background: #333333;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #555555;
}

.timeline-content .activity-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.timeline-content .activity-header h4 {
    color: #ffffff;
    font-size: 1rem;
    margin: 0;
}

.activity-timestamp {
    color: #888888;
    font-size: 0.8rem;
    white-space: nowrap;
}

.activity-description {
    color: #cccccc;
    margin-bottom: 0.5rem;
}

.activity-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.meta-item {
    color: #888888;
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    background: #1a1a1a;
    border-radius: 4px;
}

.load-more-container {
    text-align: center;
    margin-top: 2rem;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: #1a1a1a;
    border-radius: 16px;
    padding: 0;
    width: 90%;
    max-width: 500px;
    border: 1px solid #555555;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    max-height: 90vh;
    overflow: hidden;
    position: relative;
}

.modal-large {
    max-width: 700px;
}

.modal-header {
    background: #333333;
    padding: 1.5rem;
    border-bottom: 1px solid #555555;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.2rem;
    font-weight: 500;
    color: #ffffff;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    color: #888888;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.close-btn:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

.modal-footer {
    background: #333333;
    padding: 1.5rem;
    border-top: 1px solid #555555;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Avatar Upload Modal */
.avatar-upload-container {
    padding: 2rem;
}

.upload-area {
    border: 2px dashed #555555;
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    border-color: #f1c40f;
    background: rgba(241, 196, 15, 0.05);
}

.upload-area.dragover {
    border-color: #f1c40f;
    background: rgba(241, 196, 15, 0.1);
}

.upload-placeholder {
    color: #cccccc;
}

.upload-icon-large {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.upload-hint {
    color: #888888;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.avatar-preview {
    text-align: center;
}

.avatar-preview img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #f1c40f;
    margin-bottom: 1rem;
}

.preview-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Two-Factor Setup Modal */
.two-factor-setup {
    padding: 2rem;
    max-height: 400px;
    overflow-y: auto;
}

.setup-step {
    display: none;
}

.setup-step.active {
    display: block;
}

.setup-step h4 {
    color: #f1c40f;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.app-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.app-option {
    background: #333333;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #555555;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.app-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    border-radius: 8px;
}

.app-info strong {
    color: #ffffff;
    display: block;
    margin-bottom: 0.25rem;
}

.app-info p {
    color: #888888;
    font-size: 0.8rem;
    margin: 0;
}

.qr-code {
    text-align: center;
    margin: 2rem 0;
}

.qr-placeholder {
    width: 200px;
    height: 200px;
    background: #333333;
    border: 1px solid #555555;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: #888888;
}

.qr-placeholder span {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.manual-entry {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #333333;
}

.manual-code {
    background: #333333;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-family: monospace;
    font-size: 1.1rem;
    color: #f1c40f;
    letter-spacing: 2px;
    margin: 0.5rem;
    display: inline-block;
}

.verification-input {
    text-align: center;
    margin: 2rem 0;
}

.verification-input input {
    font-size: 2rem;
    text-align: center;
    letter-spacing: 0.5rem;
    width: 200px;
    font-family: monospace;
}

/* Notifications */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notification {
    background: linear-gradient(135deg, #f1c40f, #f39c12);
    color: #000000;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    animation: slideInRight 0.3s ease-out;
    max-width: 350px;
    position: relative;
}

.notification.success {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: #ffffff;
}

.notification.error {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #ffffff;
}

.notification.warning {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #ffffff;
}

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

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 1rem;
    opacity: 0.7;
}

.notification-close:hover {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .overview-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-header-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .profile-avatar-section {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        overflow-x: auto;
        padding: 1rem 0;
    }

    .nav-menu {
        display: flex;
        white-space: nowrap;
        padding: 0 1rem;
        gap: 0.25rem;
    }

    .nav-item {
        flex-direction: column;
        padding: 0.5rem;
        min-width: 80px;
        text-align: center;
        border-left: none;
        border-bottom: 4px solid transparent;
    }

    .nav-item:hover,
    .nav-item.active {
        border-left: none;
        border-bottom-color: #000000;
        transform: translateY(-3px);
    }

    .nav-icon {
        margin-right: 0;
        margin-bottom: 0.25rem;
    }

    .nav-text {
        font-size: 0.9rem;
    }

    .main-content {
        padding: 1rem;
    }

    .profile-header {
        padding: 1.5rem;
    }

    .profile-name {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .tab-navigation {
        overflow-x: auto;
    }

    .tab-content {
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .activity-timeline {
        padding-left: 1rem;
    }

    .timeline-item {
        padding-left: 1.5rem;
    }

    .timeline-marker {
        left: -1.5rem;
    }

    .modal-content {
        width: 95%;
        margin: 1rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-header-actions {
        width: 100%;
        justify-content: stretch;
    }

    .profile-header-actions .btn {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .profile-avatar-section {
        flex-direction: column;
        text-align: center;
    }

    .profile-avatar {
        width: 100px;
        height: 100px;
    }

    .tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
    }

    .achievements-grid {
        grid-template-columns: 1fr;
    }

    .activity-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .activity-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .verification-input input {
        width: 150px;
        font-size: 1.5rem;
    }
}

/* Custom Scrollbar */
.tab-content::-webkit-scrollbar,
.two-factor-setup::-webkit-scrollbar {
    width: 6px;
}

.tab-content::-webkit-scrollbar-track,
.two-factor-setup::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 3px;
}

.tab-content::-webkit-scrollbar-thumb,
.two-factor-setup::-webkit-scrollbar-thumb {
    background: #555555;
    border-radius: 3px;
}

.tab-content::-webkit-scrollbar-thumb:hover,
.two-factor-setup::-webkit-scrollbar-thumb:hover {
    background: #666666;
}

/* Firefox Scrollbar */
.tab-content,
.two-factor-setup {
    scrollbar-width: thin;
    scrollbar-color: #555555 #1a1a1a;
}

/* Print Styles */
@media print {

    .sidebar,
    .profile-header-actions,
    .tab-navigation,
    .modal,
    .notification-container {
        display: none !important;
    }

    .main-content {
        margin-left: 0;
        padding: 1rem;
    }

    .profile-header {
        background: #ffffff !important;
        color: #000000 !important;
        border: 1px solid #000000 !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {

    .stat-card,
    .overview-card,
    .activity-item,
    .security-option,
    .notification-option,
    .session-item {
        border-width: 2px;
    }

    .btn {
        border: 2px solid transparent;
    }

    .btn:focus {
        border-color: #ffffff;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    .stat-card,
    .overview-card,
    .activity-item,
    .btn,
    .tab-btn,
    .toggle-slider,
    .progress-bar {
        transition: none;
        animation: none;
    }

    .notification {
        animation: none;
    }
}