/* --- COMPACT FLEET HISTORY MODAL --- */
.fleet-modal-overlay {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

.fleet-modal-content {
    background-color: #0d0d0d;
    border: 1px solid #333;
    border-top: 2px solid #ffd700;
    width: 95%;
    max-width: 900px; /* Increased width since items are now horizontal strings */
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 0 30px rgba(0,0,0,1);
}

.fleet-modal-title {
    color: #ffd700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 15px 0;
    border-bottom: 1px solid #222;
    padding-bottom: 10px;
}

.fleet-list {
    overflow-y: auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* One-line compact entry */
.fleet-item-compact {
    display: flex;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #1a1a1a;
    font-size: 0.85rem; /* Smaller text size */
    color: #ccc;
    white-space: nowrap;
    overflow: hidden;
}

.fleet-item-compact:hover {
    background: rgba(255, 215, 0, 0.05);
    color: #fff;
}

.f-date {
    color: #888;
    flex: 0 0 90px; /* Fixed width for alignment */
    font-family: monospace;
}

.f-sep {
    color: #444;
    margin: 0 10px;
    flex-shrink: 0;
}

.f-name {
    color: #eee;
    font-weight: 600;
    flex: 0 0 200px; /* Adjust based on your typical fleet name length */
    overflow: hidden;
    text-overflow: ellipsis;
}

.f-desc {
    color: #888;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Scrollbar Styling */
.fleet-list::-webkit-scrollbar { width: 4px; }
.fleet-list::-webkit-scrollbar-track { background: #000; }
.fleet-list::-webkit-scrollbar-thumb { background: #333; }
.fleet-list::-webkit-scrollbar-thumb:hover { background: #ffd700; }

.close-fleet-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #555;
    font-size: 24px;
    cursor: pointer;
}

.close-fleet-modal:hover { color: #ff4d4d; }

/* Ensure the resource tabs behave like the corp tabs */
#links .corp-tab-compact {
    text-decoration: none; /* Removes underline */
    display: flex;
    transition: all 0.2s ease-in-out;
}

#links .corp-tab-compact:hover {
    border-color: #ffd700;
    background: #222;
    transform: translateY(-2px); /* Subtle lift on hover */
}

#links .corp-tab-compact span {
    color: #eee;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

/* Adjusting the grid for 4 items if you want them in one row on desktop */
@media (min-width: 1200px) {
    #links .corp-compact-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}