/* TMRW Travel - Custom Styles */

/* General */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Navbar */
.navbar-brand {
    font-size: 1.5rem;
}

/* Cards */
.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

/* Tables */
.table th {
    white-space: nowrap;
    background-color: #f8f9fa;
}

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

/* Stats cards */
.stat-card {
    border-left: 4px solid;
}

.stat-card.primary {
    border-left-color: #0d6efd;
}

.stat-card.success {
    border-left-color: #198754;
}

.stat-card.warning {
    border-left-color: #ffc107;
}

.stat-card.danger {
    border-left-color: #dc3545;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: bold;
}

/* Login page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.login-card {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
}

.login-logo {
    font-size: 2rem;
    font-weight: bold;
    color: #0d6efd;
}

/* Dropzone for file uploads */
.dropzone {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dropzone:hover,
.dropzone.dragover {
    border-color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.05);
}

.dropzone i {
    font-size: 3rem;
    color: #6c757d;
}

/* Print styles */
@media print {
    .navbar,
    .no-print,
    footer {
        display: none !important;
    }

    main {
        padding: 0 !important;
    }

    .card {
        border: none !important;
        box-shadow: none !important;
    }

    .table {
        font-size: 10pt;
    }

    .badge {
        border: 1px solid #000;
        color: #000 !important;
        background: #fff !important;
    }

    a[href]:after {
        content: none !important;
    }
}

/* Production Memo print styles */
.memo-header {
    border-bottom: 2px solid #000;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.memo-department {
    break-inside: avoid;
    margin-bottom: 1rem;
}

.memo-department h5 {
    background-color: #f8f9fa;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
}

/* XLS Import column mapper */
.column-mapper {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
}

.column-mapper .column-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-bottom: 1px solid #dee2e6;
}

.column-mapper .column-item:last-child {
    border-bottom: none;
}

.column-preview {
    font-family: monospace;
    font-size: 0.85rem;
    color: #6c757d;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Submission review */
.submission-image {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

.parsed-data {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
}

.parsed-data dl {
    margin-bottom: 0;
}

/* Car group cards */
.car-group-card {
    border-left: 4px solid #0d6efd;
}

.car-group-card .crew-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.car-group-card .crew-list li {
    padding: 0.25rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.car-group-card .crew-list li:last-child {
    border-bottom: none;
}

/* Show selector dropdown */
.show-selector {
    min-width: 250px;
}

/* Status indicators */
.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.status-dot.active {
    background-color: #198754;
}

.status-dot.draft {
    background-color: #6c757d;
}

.status-dot.archived {
    background-color: #343a40;
}

/* Quick actions */
.quick-actions .btn {
    margin-bottom: 0.5rem;
}

/* Form improvements */
.form-label.required::after {
    content: " *";
    color: #dc3545;
}

/* Department/Role tree */
.dept-tree {
    list-style: none;
    padding: 0;
}

.dept-tree .dept-item {
    margin-bottom: 1rem;
}

.dept-tree .role-list {
    list-style: none;
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

.dept-tree .role-list li {
    padding: 0.25rem 0;
    color: #6c757d;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .stat-card .stat-value {
        font-size: 1.5rem;
    }

    .table-responsive {
        font-size: 0.875rem;
    }
}
