/* Shared Header Styling for All Pages */
/* Modern Header Design with Purple Gradient */

/* Header Layout */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.header-content {
    flex: 1;
    text-align: center;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Header layout adjustments */
.header-actions-left {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.header-actions-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
}

.header-content {
    flex: 1;
    text-align: center;
    margin: 0 auto;
}

/* Back to Hub Button - Smaller */
.back-to-hub-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-width: auto;
}

.back-to-hub-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.back-to-hub-btn:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 14px;
    font-weight: bold;
}

.btn-text {
    font-weight: 500;
    font-size: 12px;
}

/* Power Button Styling */
.power-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.power-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.power-button:active {
    transform: scale(0.95);
}

.power-button svg {
    width: 18px;
    height: 18px;
}

.user-name {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
}

.user-logout-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Main Header Styling */
header {
    text-align: left;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ff6b35, #f7931e, #ff8c00);
    padding: 24px 32px;
    border: none;
    border-radius: 16px;
    box-shadow: 
        0 8px 32px rgba(255, 107, 53, 0.3),
        0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

header:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(255, 107, 53, 0.4),
        0 1px 0 rgba(255, 255, 255, 0.2);
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0.5), #ffffff);
    border-radius: 16px 16px 0 0;
}

/* Header Title */
h1 {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    letter-spacing: -0.025em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Header Subtitle */
.subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    opacity: 0.95;
}

/* Debug Indicator */
.debug-indicator {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    margin-top: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        padding: 20px;
    }
    
    .header-top {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .header-actions,
    .header-actions-left,
    .header-actions-right {
        justify-content: flex-start;
    }
    
    .header-content {
        text-align: center;
    }
    
    .back-to-hub-btn {
        min-width: 100px;
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .back-to-hub-btn .btn-text {
        display: none;
    }
    
    .back-to-hub-btn .btn-icon {
        font-size: 16px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    .subtitle {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 20px;
    }
    
    .subtitle {
        font-size: 13px;
    }
    
    header {
        padding: 16px;
    }
}
