 /* Custom styles for LTO Management System */

/* File List Icons */
.file-list-icon {
    display: inline-flex;
    align-items: center;
    background-color: #f0f0f0;
    border-radius: 4px;
    padding: 2px 6px;
    margin-right: 4px;
    margin-bottom: 4px;
    font-size: 0.85rem;
    white-space: nowrap;
}

.file-list-icon i {
    margin-right: 3px;
}

.file-list-icon sub {
    font-size: 0.7rem;
    margin-left: 1px;
    color: #666;
}
body {
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Styles for file list processing indicators */
.file-list-item.processing {
    background-color: rgba(0, 123, 255, 0.05);
    border-left: 3px solid #007bff;
}

.status-indicator.processing {
    display: inline-block;
    margin-left: 10px;
    padding: 2px 8px;
    background-color: #007bff;
    color: white;
    border-radius: 4px;
    font-size: 0.8rem;
}

.processing-text {
    color: #007bff;
    font-weight: bold;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.navbar-brand {
    font-weight: bold;
}

.card {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.card-header {
    font-weight: bold;
}

.table th {
    background-color: #f1f1f1;
}

footer {
    margin-top: auto;
}

/* Status badges */
.status-badge {
    padding: 6px 10px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.85rem;
}

.status-available {
    background-color: #d1e7dd;
    color: #0f5132;
}

.status-in-use {
    background-color: #cfe2ff;
    color: #084298;
}

.status-archived {
    background-color: #e2e3e5;
    color: #41464b;
}

.status-offsite {
    background-color: #fff3cd;
    color: #664d03;
}

.status-damaged {
    background-color: #f8d7da;
    color: #842029;
}

/* File type badges */
.file-type-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.8rem;
}

.file-type-mxf {
    background-color: #d1e7dd;
    color: #0f5132;
}

.file-type-wav {
    background-color: #cfe2ff;
    color: #084298;
}

.file-type-mp4 {
    background-color: #e2e3e5;
    color: #41464b;
}

.file-type-mov {
    background-color: #fff3cd;
    color: #664d03;
}

.file-type-r3d {
    background-color: #f8d7da;
    color: #842029;
}

.file-type-exr {
    background-color: #d8d8fc;
    color: #3a3a98;
}

.file-type-prproj {
    background-color: #fcd8fc;
    color: #983a98;
}

.file-type-sql {
    background-color: #d8fcfc;
    color: #3a9898;
}

.file-type-zip {
    background-color: #fcfcd8;
    color: #989838;
}

/* Animation for loading */
.loading-spinner {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: 0.25rem solid rgba(0, 0, 0, 0.1);
    border-right-color: #007bff;
    border-radius: 50%;
    animation: spinner 0.75s linear infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Hover effect for tape rows */
.tape-row {
    cursor: pointer;
    transition: background-color 0.2s;
}

.tape-row:hover {
    background-color: rgba(13, 110, 253, 0.1) !important;
}

/* MD5 Hash styling */
code {
    background-color: #f8f9fa;
    padding: 2px 5px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #d63384;
    word-break: break-all;
}

/* Dashboard sections */
#dashboard-section,
#admin-dashboard-section,
#tape-details-section {
    width: 100%;
    min-height: 400px;
    position: relative;
    display: block;
}

#dashboard-section .container,
#admin-dashboard-section .container,
#tape-details-section .container {
    width: 100%;
    padding: 15px;
}

#dashboard-section.d-none,
#admin-dashboard-section.d-none,
#tape-details-section.d-none {
    display: none !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-title {
        font-size: 1rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    code {
        font-size: 0.75rem;
    }
}

/* Dashboard stats font size adjustments - Maximum specificity approach */
#dashboard-section .card-body .card-text.display-4,
#admin-dashboard-section .card-body .card-text.display-4,
.card-body p.card-text.display-4,
p.card-text.display-4#total-capacity,
p.card-text.display-4#admin-total-capacity,
p.card-text.display-4#total-tapes,
p.card-text.display-4#admin-total-tapes,
p.card-text.display-4#total-files,
p.card-text.display-4#admin-total-files,
p.card-text.display-4#used-space,
p.card-text.display-4#admin-used-space,
#total-capacity,
#admin-total-capacity {
    font-size: 1.2rem !important; /* Extremely small - 1/3 of display-4 */
    line-height: 1.1 !important;
    font-weight: bold !important;
}

/* Comment icon styles */
.has-comment .fas.fa-comment {
    cursor: pointer;
    transition: transform 0.2s, color 0.2s;
    vertical-align: middle;
}

.has-comment .fas.fa-comment:hover {
    transform: scale(1.2);
    color: #0d6efd !important;
}

/* Custom tooltip styles */
.tooltip {
    font-family: inherit;
    font-size: 0.9rem;
    pointer-events: none;
}

.tooltip .tooltip-inner {
    max-width: 300px;
    padding: 8px 12px;
    background-color: rgba(33, 37, 41, 0.95);
    border-radius: 6px;
    line-height: 1.4;
    text-align: left;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}