/* Dashboard Sidebar and Layout Styles */
/* Infoskjerm Dashboard System */

/* Dashboard Container */
.dashboard-container {
    min-height: 100vh;
    background: var(--theme-bg-primary);
    color: var(--theme-text-primary);
    display: flex;
    flex-direction: column;
}

/* Top Navigation */
.top-nav {
    background: var(--theme-bg-surface);
    border-bottom: 1px solid var(--theme-border-primary);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-left {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--theme-text-primary);
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.logo:hover {
    color: var(--theme-primary);
    text-shadow: 0 0 10px rgba(0, 230, 230, 0.5);
}

.logo img {
    height: 32px;
    width: auto;
    margin-right: 10px;
}

.logo-text {
    font-size: 1.5rem;
}

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

.nav-link {
    color: var(--theme-text-secondary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--theme-primary);
    background: rgba(0, 230, 230, 0.1);
}

.nav-link.admin-link {
    color: var(--theme-accent);
    font-weight: 600;
}

.admin-badge {
    background: var(--theme-accent);
    color: #000;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 5px;
    font-weight: 700;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* User Menu */
.user-menu {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.user-info:hover {
    background: rgba(0, 230, 230, 0.1);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--theme-primary);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.user-name {
    font-weight: 500;
    color: var(--theme-text-primary);
}

/* Main Content Area */
.main-content {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Dashboard Cards */
.dashboard-card {
    background: var(--theme-bg-surface);
    border: 1px solid var(--theme-border-primary);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 230, 230, 0.1);
    border-color: var(--theme-primary);
}

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

.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--theme-text-primary);
}

.card-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--theme-gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 1.2rem;
}

.card-content {
    color: var(--theme-text-secondary);
    line-height: 1.6;
}

.card-stats {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--theme-primary);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--theme-text-tertiary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--theme-gradient-primary);
    color: #000;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 230, 230, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--theme-primary);
    border: 2px solid var(--theme-primary);
}

.btn-secondary:hover {
    background: var(--theme-primary);
    color: #000;
}

/* Responsive Design */
@media (max-width: 768px) {
    .top-nav {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-center {
        gap: 1rem;
    }
    
    .nav-link {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Theme Switcher Styles */
.theme-switcher, .language-switcher {
    display: inline-block;
    position: relative;
}

.theme-switcher select, .language-switcher select {
    background: var(--theme-bg-surface);
    color: var(--theme-text-primary);
    border: 1px solid var(--theme-border-primary);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-switcher select:hover, .language-switcher select:hover {
    border-color: var(--theme-primary);
    background: rgba(0, 230, 230, 0.1);
}

/* Demo Banner */
.demo-banner {
    background: linear-gradient(135deg, var(--theme-accent), #ff8c42);
    color: #000;
    padding: 1rem 2rem;
    text-align: center;
    font-weight: 600;
    border-bottom: 1px solid var(--theme-border-primary);
}

.demo-banner .demo-text {
    font-size: 1.1rem;
}

.demo-banner .demo-credentials {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-family: 'Courier New', monospace;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--theme-primary);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}