﻿/*
 * LaunchCompass
 * Copyright (c) 2026 Robert Morgan / RMC Software Solutions, LLC
 * All rights reserved.
 * 
 * This software is proprietary and confidential.
 * Unauthorized copying, modification, distribution, or use is strictly prohibited.
 * 
 * File: wwwroot\css\launch-panel.css
 * Author: Robert Morgan
 * Version: 1.0.0
 * Created: 01/27/2026
 * Modified: 01/27/2026
 * Released: 00/00/0000
 * 
 * Description:
 *     Styles for expandable launch schedule panel and launch cards.
 *     Includes status badges, pagination controls, and card hover effects.
 * 
 * MVVM Role: Styling
 * Architecture: Component Styles | Cards | Status Badges
*/

/* wwwroot/css/launch-panel.css */

/* ==========================================
   LAUNCH SCHEDULE PANEL
   ========================================== */
.launch-schedule-panel {
    width: 100%;
    background: rgba(30, 30, 45, 0.95);
    border-radius: 12px;
    overflow: hidden;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
}

    .panel-header:hover {
        background-color: #374151;
    }

    .panel-header h3 {
        font-size: 1rem;
        font-weight: 600;
        margin: 0;
    }

.toggle-icon {
    color: #00d4ff;
}

.filter-row {
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid #374151;
}

    .filter-row select {
        width: 100%;
        padding: 8px;
        background-color: #111827;
        color: #ffffff;
        border: 1px solid rgba(0, 212, 255, 0.3);
        border-radius: 6px;
        font-size: 0.875rem;
    }

.loading, .no-data {
    padding: 2rem 1rem;
    text-align: center;
    color: #6b7280;
}

    .no-data p {
        margin-bottom: 1rem;
    }

.launch-list {
    padding: 0.5rem;
}

/* ==========================================
   LAUNCH CARD
   ========================================== */
.launch-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    padding: 0.6rem 0.75rem;
    overflow: hidden;
    transition: all 0.2s ease;
}

    .launch-item.selectable {
        border-left: 3px solid #22c55e;
        cursor: pointer;
    }

        .launch-item.selectable:hover {
            background: rgba(34, 197, 94, 0.08);
            border-color: rgba(34, 197, 94, 0.4);
            box-shadow: 0 0 12px rgba(34, 197, 94, 0.15);
        }

    .launch-item:not(.selectable) {
        opacity: 0.7;
        border-left: 3px solid #666;
    }

/* ==========================================
   LINE STYLES
   ========================================== */
.line-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.2rem;
}

.line-icon {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    line-height: 1.4;
    margin-bottom: 0.1rem;
}

.line-indent {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    line-height: 1.4;
    margin-bottom: 0.1rem;
    padding-left: 1.25rem;
}

.icon {
    display: inline-block;
    width: 1.25rem;
    flex-shrink: 0;
    text-align: center;
}

/* ==========================================
   TEXT COLORS
   ========================================== */
.text-yellow {
    color: #ffc107;
}

.text-white {
    color: #fff;
    font-weight: 600;
}

.text-cyan {
    color: #00d4ff;
}

.text-gray {
    color: #bbb;
}

.text-dark {
    color: #bbb;
}

/* ==========================================
   STATUS BADGE
   ========================================== */
.status-badge {
    display: inline-block;
    padding: 0.1rem 0.35rem;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border-radius: 3px;
}

.status-go {
    background: linear-gradient(135deg, #00c853, #00a844);
    color: #fff;
}

.status-tbc {
    background: linear-gradient(135deg, #ffc107, #e6ac00);
    color: #000;
}

.status-tbd {
    background: linear-gradient(135deg, #ff9800, #e68900);
    color: #000;
}

.status-hold {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: #fff;
}

.status-success {
    background: linear-gradient(135deg, #4caf50, #388e3c);
    color: #fff;
}

.status-failure {
    background: linear-gradient(135deg, #9e9e9e, #757575);
    color: #fff;
}

.status-unknown {
    background: rgba(128, 128, 128, 0.5);
    color: #ccc;
}

/* ==========================================
   PAGINATION
   ========================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-btn {
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
    border: 1px solid rgba(0, 212, 255, 0.5);
    background: transparent;
    color: #00d4ff;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .page-btn:hover:not(:disabled) {
        background: rgba(0, 212, 255, 0.2);
    }

    .page-btn:disabled {
        opacity: 0.4;
        cursor: not-allowed;
    }

.page-info {
    color: #888;
    font-size: 0.75rem;
}

.refresh-btn {
    display: block;
    width: calc(100% - 1rem);
    margin: 0.5rem;
    padding: 0.5rem;
    border-radius: 6px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
    font-size: 0.75rem;
    cursor: pointer;
}

    .refresh-btn:hover:not(:disabled) {
        background: rgba(0, 212, 255, 0.25);
    }

    .refresh-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }
