/* Dashboard-specific styles */

.profile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.profile-info {
    display: flex;
    align-items: center;
}

.profile-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 15px;
}

.profile-name {
    font-weight: 600;
    color: #ffffff;
}

.profile-level {
    font-size: 14px;
    color: #a0a0a0;
}

.settings-icon {
    font-size: 24px;
    color: #a0a0a0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.settings-icon:hover {
    color: #ff6b6b;
}

.streak-indicator {
    display: flex;
    align-items: center;
    background: rgba(255, 107, 107, 0.2);
    border-radius: 20px;
    padding: 8px 15px;
    margin-bottom: 20px;
}

.streak-fire {
    font-size: 20px;
    margin-right: 8px;
}

.streak-text {
    font-size: 14px;
    font-weight: 600;
}

.weather-widget {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.weather-info {
    display: flex;
    align-items: center;
}

.weather-icon {
    font-size: 24px;
    margin-right: 10px;
}

.weather-text {
    font-size: 14px;
    color: #a0a0a0;
}

.weather-temp {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

.achievement-card {
    background: linear-gradient(135deg, #ffd700, #ffb700);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 20px;
    color: #000;
    display: flex;
    align-items: center;
    animation: shimmer 2s infinite;
}

.achievement-icon {
    font-size: 32px;
    margin-right: 15px;
}

.achievement-text {
    flex: 1;
}

.achievement-title {
    font-weight: 700;
    margin-bottom: 3px;
}

.achievement-desc {
    font-size: 12px;
    opacity: 0.8;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.quick-actions {
    margin-bottom: 25px;
}

.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.action-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border: none;
    border-radius: 20px;
    padding: 20px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.4);
}

.action-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: none;
}

.action-icon {
    font-size: 24px;
    margin-bottom: 8px;
    display: block;
}

.recent-sessions {
    margin-bottom: 25px;
}

.session-list {
    space-y: 10px;
}

.session-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 10px;
    border-left: 4px solid #ff6b6b;
    transition: all 0.3s ease;
    cursor: pointer;
}

.session-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.session-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.session-date {
    font-weight: 600;
    color: #ffffff;
}

.session-score {
    background: #ff6b6b;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.session-stats {
    display: flex;
    justify-content: space-between;
    color: #a0a0a0;
    font-size: 14px;
}

.bottom-nav {
    height: 80px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 20px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 12px;
    position: relative;
}

.nav-item:hover, .nav-item.active {
    background: rgba(255, 107, 107, 0.2);
}

.nav-icon {
    font-size: 24px;
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.nav-item.active .nav-icon {
    color: #ff6b6b;
}

.nav-label {
    font-size: 12px;
    color: #a0a0a0;
    transition: all 0.3s ease;
}

.nav-item.active .nav-label {
    color: #ff6b6b;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff6b6b;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Insights Section */
.insights-section {
    margin-bottom: 25px;
}

.insight-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid;
    transition: all 0.3s ease;
}

.insight-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.insight-card.positive {
    border-left-color: #4ade80;
}

.insight-card.warning {
    border-left-color: #fbbf24;
}

.insight-card.critical {
    border-left-color: #ef4444;
}

.insight-card.info {
    border-left-color: #3b82f6;
}

.insight-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.insight-icon {
    font-size: 24px;
    margin-right: 12px;
}

.insight-title {
    font-weight: 600;
    flex: 1;
}

.insight-priority {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 8px;
    font-weight: 600;
}

.priority-high {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.priority-medium {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.priority-low {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.insight-description {
    color: #a0a0a0;
    line-height: 1.5;
    margin-bottom: 10px;
}

.insight-action {
    color: #ff6b6b;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

/* Safe Security Styles */
.safe-status-card {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(22, 163, 74, 0.1));
    border: 2px solid #22c55e;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.safe-status-card.open {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.1));
    border-color: #ef4444;
}

.safe-status-card.open .safe-icon-large {
    animation: shake 0.5s infinite;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.safe-icon-large {
    font-size: 64px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.safe-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}

.safe-status {
    font-size: 24px;
    font-weight: 700;
    color: #22c55e;
    margin-bottom: 10px;
}

.safe-status-card.open .safe-status {
    color: #ef4444;
}

.safe-last-opened {
    color: #a0a0a0;
    font-size: 14px;
    margin-bottom: 15px;
}

.safe-connection {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #22c55e;
    font-weight: 600;
}

.connection-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse 2s infinite;
}

.activity-log {
    margin-bottom: 25px;
}

.activity-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.activity-icon {
    font-size: 24px;
    margin-right: 15px;
    width: 40px;
    text-align: center;
}

.activity-details {
    flex: 1;
}

.activity-text {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 3px;
}

.activity-time {
    font-size: 12px;
    color: #a0a0a0;
}

.activity-duration {
    color: #fbbf24;
    font-size: 12px;
    font-weight: 600;
}

.activity-status {
    color: #4ade80;
    font-size: 12px;
    font-weight: 600;
}

.safe-settings {
    margin-bottom: 25px;
}

.setting-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.setting-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.setting-info {
    flex: 1;
}

.setting-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.setting-desc {
    font-size: 14px;
    color: #a0a0a0;
    line-height: 1.4;
}

.toggle-switch {
    position: relative;
    width: 60px;
    height: 34px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 34px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-switch.active {
    background: #ff6b6b;
}

.toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 28px;
    height: 28px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.toggle-switch.active .toggle-slider {
    transform: translateX(26px);
}

/* Safe Alert Popup */
.safe-alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(239, 68, 68, 0.4);
    display: none;
    z-index: 10000;
    animation: alert-bounce 0.5s ease;
}

@keyframes alert-bounce {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.safe-alert.show {
    display: block;
}

.alert-icon-large {
    font-size: 64px;
    margin-bottom: 15px;
    animation: shake 0.5s infinite;
}

.alert-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.alert-desc {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 20px;
}

.alert-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 15px;
    padding: 10px 20px;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

.safe-status-widget {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget-info {
    display: flex;
    align-items: center;
}

.widget-icon {
    font-size: 24px;
    margin-right: 10px;
}

.widget-title {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 3px;
}

.widget-status {
    font-size: 14px;
    color: #4ade80;
}

.widget-time {
    font-size: 12px;
    color: #a0a0a0;
}
