/* =============================================================
   TV DASHBOARD - Industrial Pop Design
   "Blueprint & Safety" Color Palette
   ============================================================= */

:root {
    /* Blueprint & Safety Palette */
    --tv-deep-slate: #2C3E50;
    --tv-industrial-amber: #F39C12;
    --tv-technical-mint: #1ABC9C;
    --tv-paper-white: #ECF0F1;

    /* Dashboard colors mapped to palette */
    --tv-bg: var(--tv-paper-white);
    --tv-white: #ffffff;
    --tv-primary: var(--tv-deep-slate);
    --tv-accent: var(--tv-industrial-amber);
    --tv-accent-secondary: var(--tv-technical-mint);
    --tv-text: var(--tv-deep-slate);
    --tv-text-light: #64748b;
    --tv-border: rgba(44, 62, 80, 0.12);

    /* Squircle radius */
    --tv-radius: 16px;
    --tv-radius-sm: 12px;

    /* Hard shadows */
    --tv-shadow-hard: 0 4px 0 rgba(0, 0, 0, 0.1);
    --tv-shadow-hard-sm: 0 3px 0 rgba(0, 0, 0, 0.08);
}

/* --- Layout --- */
.tv-dashboard-wrapper {
    display: flex;
    min-height: 700px;
    background: var(--tv-bg);
    border-radius: var(--tv-radius);
    overflow: hidden;
    border: 2px solid var(--tv-deep-slate);
    box-shadow: var(--tv-shadow-hard);
    font-family: 'Barlow', 'Inter', system-ui, sans-serif;
}

.tv-sidebar {
    width: 280px;
    background: var(--tv-deep-slate);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
}

.tv-profile {
    text-align: center;
    margin-bottom: 40px;
}

.tv-avatar img {
    border-radius: var(--tv-radius-sm);
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
    border: 3px solid var(--tv-industrial-amber);
    box-shadow: var(--tv-shadow-hard-sm);
}

.tv-profile h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--tv-paper-white);
    font-weight: 700;
}

.tv-email {
    font-size: 0.85rem;
    color: rgba(236, 240, 241, 0.7);
}

.tv-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tv-nav-btn {
    background: transparent;
    border: none;
    text-align: left;
    padding: 14px 18px;
    border-radius: var(--tv-radius-sm);
    font-size: 0.95rem;
    color: rgba(236, 240, 241, 0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
    font-weight: 600;
    text-decoration: none;
}

.tv-nav-btn:hover {
    background: rgba(236, 240, 241, 0.1);
    color: var(--tv-paper-white);
}

.tv-nav-btn.active {
    background: var(--tv-industrial-amber);
    color: var(--tv-deep-slate);
    font-weight: 700;
    box-shadow: var(--tv-shadow-hard-sm);
}

.tv-nav-divider {
    height: 2px;
    background: rgba(236, 240, 241, 0.1);
    margin: 15px 0;
}

.tv-content {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
    background: var(--tv-white);
}

.tv-tab {
    display: none;
}

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

.tv-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--tv-text);
    margin-bottom: 20px;
    font-family: 'Barlow', system-ui, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tv-white-box {
    background: white;
    padding: 25px;
    border-radius: var(--tv-radius);
    border: 2px solid var(--tv-border);
    box-shadow: var(--tv-shadow-hard-sm);
}

/* --- Prosjektliste --- */
.tv-project-card {
    background: white;
    padding: 20px;
    border-radius: var(--tv-radius-sm);
    border: 2px solid var(--tv-border);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.2s ease;
    box-shadow: var(--tv-shadow-hard-sm);
}

.tv-project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.1);
    border-color: var(--tv-industrial-amber);
}

.tv-project-card:active {
    transform: translateY(1px);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.1);
}

.tv-card-badge {
    display: inline-block;
    background: var(--tv-deep-slate);
    color: var(--tv-industrial-amber);
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tv-card-badge.inneklima {
    color: var(--tv-technical-mint);
}

.tv-card-title {
    margin: 5px 0 0 0;
    font-size: 1rem;
    color: var(--tv-text);
    font-weight: 700;
    font-family: 'Barlow', system-ui, sans-serif;
}

.tv-card-meta {
    font-size: 0.8rem;
    color: var(--tv-text-light);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tv-card-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    background: var(--tv-paper-white);
    border: 2px solid var(--tv-border);
    color: var(--tv-text-light);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    text-decoration: none;
    box-shadow: var(--tv-shadow-hard-sm);
}

.btn-icon:hover {
    background: var(--tv-deep-slate);
    color: var(--tv-paper-white);
    border-color: var(--tv-deep-slate);
    transform: translateY(-1px);
}

.btn-icon:active {
    transform: translateY(1px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}

.tv-dash-filter {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.tv-dash-filter input {
    flex: 2;
    padding: 12px 16px;
    border-radius: var(--tv-radius-sm);
    border: 2px solid var(--tv-border);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.tv-dash-filter input:focus {
    outline: none;
    border-color: var(--tv-industrial-amber);
}

.tv-dash-filter select {
    flex: 1;
    padding: 0 16px;
    border: 2px solid var(--tv-border);
    border-radius: var(--tv-radius-sm);
    background: white;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
}

.tv-dash-filter select:focus {
    outline: none;
    border-color: var(--tv-industrial-amber);
}

.tv-project-list-container {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 5px;
}

/* --- Pricing Cards --- */
.tv-pricing-header {
    text-align: center;
    margin-bottom: 40px;
}

.tv-pricing-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--tv-deep-slate);
    font-family: 'Barlow', system-ui, sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tv-pricing-header p {
    color: var(--tv-text-light);
    font-size: 1.1rem;
}

.tv-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.tv-pricing-card {
    background: white;
    border: 2px solid var(--tv-border);
    border-radius: var(--tv-radius);
    padding: 30px;
    position: relative;
    transition: all 0.2s ease;
    box-shadow: var(--tv-shadow-hard-sm);
}

.tv-pricing-card:hover {
    border-color: var(--tv-industrial-amber);
    transform: translateY(-4px);
    box-shadow: 0 8px 0 rgba(0, 0, 0, 0.1);
}

.tv-pricing-card.featured {
    border-color: var(--tv-industrial-amber);
    border-width: 3px;
}

.tv-pricing-card.current-plan {
    border-color: var(--tv-technical-mint);
    background: linear-gradient(135deg, rgba(26, 188, 156, 0.05) 0%, #ffffff 100%);
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--tv-industrial-amber);
    color: var(--tv-deep-slate);
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--tv-shadow-hard-sm);
}

.plan-header {
    text-align: center;
    margin-bottom: 30px;
    padding-top: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--tv-border);
}

.plan-header h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--tv-deep-slate);
    font-family: 'Barlow', system-ui, sans-serif;
    text-transform: uppercase;
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
}

.plan-price .price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--tv-industrial-amber);
    font-family: 'Barlow', system-ui, sans-serif;
}

.plan-price .price-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--tv-technical-mint);
}

.plan-price .period {
    color: var(--tv-text-light);
    font-size: 1rem;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.plan-features li {
    padding: 12px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--tv-text);
    font-size: 0.95rem;
    border-bottom: 1px solid var(--tv-border);
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features li i {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 0.8rem;
}

.plan-features li .fa-check {
    background: rgba(26, 188, 156, 0.15);
    color: var(--tv-technical-mint);
}

.plan-features li .fa-times {
    background: rgba(44, 62, 80, 0.1);
    color: #94a3b8;
}

.plan-action {
    margin-top: auto;
}

.btn-plan {
    width: 100%;
    padding: 16px 24px;
    border: none;
    border-radius: var(--tv-radius-sm);
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Barlow', system-ui, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--tv-shadow-hard-sm);
}

.btn-plan:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}

.btn-plan.primary {
    background: var(--tv-industrial-amber);
    color: var(--tv-deep-slate);
}

.btn-plan.primary:hover {
    background: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.15);
}

.btn-plan.secondary {
    background: var(--tv-paper-white);
    color: var(--tv-deep-slate);
    border: 2px solid var(--tv-border);
}

.btn-plan.secondary:hover {
    background: var(--tv-deep-slate);
    color: var(--tv-paper-white);
}

.btn-plan.contact {
    background: var(--tv-technical-mint);
    color: white;
}

.btn-plan.contact:hover {
    background: #16a085;
}

.btn-plan.current {
    background: var(--tv-technical-mint);
    color: white;
    cursor: default;
}

.btn-plan:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.tv-success-banner {
    background: linear-gradient(135deg, rgba(26, 188, 156, 0.1) 0%, rgba(26, 188, 156, 0.05) 100%);
    border: 2px solid var(--tv-technical-mint);
    border-radius: var(--tv-radius);
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--tv-shadow-hard-sm);
}

.tv-success-banner i {
    font-size: 2rem;
    color: var(--tv-technical-mint);
}

.tv-success-banner strong {
    display: block;
    color: var(--tv-deep-slate);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.tv-success-banner p {
    color: var(--tv-text);
    margin: 0;
}

.tv-info-box {
    background: rgba(243, 156, 18, 0.1);
    border-left: 4px solid var(--tv-industrial-amber);
    padding: 15px 20px;
    border-radius: 0 var(--tv-radius-sm) var(--tv-radius-sm) 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tv-info-box i {
    color: var(--tv-industrial-amber);
    font-size: 1.5rem;
}

.tv-info-box p {
    margin: 0;
    color: var(--tv-deep-slate);
}

.tv-info-box a {
    color: var(--tv-industrial-amber);
    font-weight: 600;
    text-decoration: underline;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .tv-dashboard-wrapper {
        flex-direction: column;
    }
    .tv-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 2px solid rgba(236, 240, 241, 0.2);
        padding: 20px;
    }
    .tv-nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    .tv-nav-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    .tv-nav-divider {
        display: none;
    }
    .tv-content {
        padding: 20px;
    }
    .tv-pricing-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Font Import --- */
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@500;600;700;800&display=swap');
