/* File: frontend/css/header.css */
/* Directory: /var/www/nkn.havok2.net/frontend/css/ */

/* Enhanced header with background image */
.header {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.9), rgba(59, 130, 246, 0.9)), 
                url('../images/bg.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.header-content {
    position: relative;
    z-index: 2;
    padding: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.logo i {
    font-size: 2.5rem;
    color: #10b981;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.logo-text h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(45deg, #10b981, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.logo-url {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: -2px;
    font-weight: 400;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.logo-version {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 2px;
    font-weight: 400;
}

.header-stats {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.mini-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mini-stat i {
    color: #10b981;
    font-size: 0.9rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-actions .btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.nav-actions .btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.nav-actions .btn-danger {
    background: rgba(239, 68, 68, 0.8);
    border-color: rgba(239, 68, 68, 0.9);
}

.nav-actions .btn-danger:hover {
    background: rgba(239, 68, 68, 1);
    border-color: rgba(239, 68, 68, 1);
}

/* Enhanced login section background */
.login-container {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(59, 130, 246, 0.1)), 
                url('../images/bg.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.login-card {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Notification styles */
.notification {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Button group for actions */
.btn-group {
    display: flex;
    gap: 4px;
}

.btn-group .btn {
    padding: 4px 8px;
    font-size: 0.875rem;
}

/* Status indicator improvements */
.status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.status-indicator.online {
    color: #10b981;
}

.status-indicator.offline {
    color: #ef4444;
}

/* Table improvements */
.table td {
    vertical-align: middle;
}

.node-name {
    font-weight: 600;
    color: #007bff !important;
    text-decoration: underline;
    cursor: pointer;
}

.node-name:hover {
    color: #0056b3 !important;
}

/* Mobile responsiveness for header */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .nav-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
}
