/**
 * Custom Styles for SpliceTracker.io
 */

/* Modern Typography */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

/* Enhanced Cards */
.card {
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.08);
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.card-header {
    font-weight: 600;
    padding: 1rem 1.25rem;
}

/* Enhanced Buttons */
.btn {
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 6px;
}

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

.btn-sm {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

/* Better Table Styling */
.table {
    font-size: 0.95rem;
}

.table thead th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    padding: 1rem 0.75rem;
    border-bottom: 2px solid var(--border, #dee2e6);
}

.table tbody td {
    padding: 0.875rem 0.75rem;
    vertical-align: middle;
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: rgba(0,0,0,0.02);
}

.table-hover > tbody > tr:hover {
    background-color: rgba(0,0,0,0.05);
}

/* Enhanced Form Controls */
.form-control, .form-select {
    border-radius: 6px;
    border: 1px solid var(--border, #ced4da);
    transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary, #1A73E8);
    box-shadow: 0 0 0 0.2rem rgba(26, 115, 232, 0.15);
}

/* Enhanced Navbar */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
}

.nav-link {
    font-weight: 500;
    transition: color 0.2s ease;
}

/* Enhanced Badges */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
    border-radius: 4px;
}

/* Loading States */
.spinner-border {
    width: 2rem;
    height: 2rem;
    border-width: 0.2em;
}

/* Smooth Transitions */
* {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Fiber color coding */
.fiber-active {
    background-color: #28a745;
    color: white;
}

.fiber-spare {
    background-color: #6c757d;
    color: white;
}

.fiber-dark {
    background-color: #343a40;
    color: white;
}

.fiber-damaged {
    background-color: #dc3545;
    color: white;
}

.fiber-reserved {
    background-color: #ffc107;
    color: #000;
}

/* Splice tray visualization */
.splice-tray {
    border: 2px solid var(--border);
    border-radius: 4px;
    padding: 10px;
    margin: 10px 0;
    background: var(--panel);
}

/* Cable hierarchy */
.cable-tree {
    margin-left: 20px;
}

.cable-tree .tube-item {
    margin-left: 20px;
    padding: 5px;
    border-left: 2px solid var(--border);
}

.cable-tree .fiber-item {
    margin-left: 20px;
    padding: 3px;
}

/* Report tables */
.report-table {
    width: 100%;
    margin-top: 20px;
}

/* Status badges */
.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
}

/* Loading spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

