/* ThreeAndTwo Baseball - Dashboard CSS */
/* Retro Hollywood OS Terminal Theme */

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: black;
    color: #75F0BB;
    font-family: 'Roboto Mono', monospace;
    margin: 0;
    padding: 20px;
    border: 5px solid #75F0BB;
    font-size: 14px;
}

/* ===== SIDEBAR NAVIGATION ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 200px;
    background-color: #001A00;
    height: 100%;
    border-right: 2px solid #75F0BB;
    overflow-y: auto;
    padding: 10px;
    z-index: 1000;
}

.menu {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    cursor: pointer;
    padding: 10px;
    border: 1px solid #75F0BB;
    background-color: black;
    color: #75F0BB;
    text-transform: uppercase;
    font-family: 'Roboto Mono', monospace;
    text-align: left;
    transition: background-color 0.3s;
}

.menu:hover {
    background-color: #004000;
}

/* ===== MAIN CONTENT ===== */
main {
    margin-left: 220px;
    padding: 20px;
}

section {
    margin-bottom: 60px;
}

h2 {
    color: #75F0BB;
    font-size: 24px;
    margin-bottom: 20px;
    text-transform: uppercase;
    border-bottom: 2px solid #75F0BB;
    padding-bottom: 10px;
}

h3 {
    margin-bottom: 10px;
    text-transform: uppercase;
    font-size: 14px;
}

/* ===== GRID LAYOUTS ===== */
.grid-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.grid-container2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.grid-container3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.grid-container4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

/* ===== BOX CONTAINERS ===== */
.box {
    background-color: black;
    border: 2px solid #75F0BB;
    padding: 15px;
    text-align: left;
    overflow: hidden;
}

.scrollable {
    max-height: 400px;
    overflow-y: scroll;
    scrollbar-color: #75F0BB black;
    scrollbar-width: thin;
}

.scrollable2 {
    max-height: 300px;
    overflow-y: scroll;
    scrollbar-color: #75F0BB black;
    scrollbar-width: thin;
}

/* Custom scrollbar for webkit browsers */
.scrollable::-webkit-scrollbar,
.scrollable2::-webkit-scrollbar {
    width: 8px;
}

.scrollable::-webkit-scrollbar-track,
.scrollable2::-webkit-scrollbar-track {
    background: black;
}

.scrollable::-webkit-scrollbar-thumb,
.scrollable2::-webkit-scrollbar-thumb {
    background: #75F0BB;
    border-radius: 4px;
}

/* ===== TABLES ===== */
table {
    width: 100%;
    border-collapse: collapse;
    color: #75F0BB;
}

th {
    background-color: #001A00;
    color: #75F0BB;
    padding: 10px;
    text-align: left;
    border-bottom: 2px solid #75F0BB;
    font-weight: bold;
    position: sticky;
    top: 0;
}

td {
    padding: 8px 10px;
    border-bottom: 1px solid #003300;
}

tr:hover {
    background-color: #001A00;
}

/* ===== SEARCH BOX ===== */
.search-box {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    background-color: black;
    border: 2px solid #75F0BB;
    color: #75F0BB;
    font-family: 'Roboto Mono', monospace;
    font-size: 14px;
}

.search-box:focus {
    outline: none;
    border-color: #00FF00;
}

/* ===== NEWS & UPDATES ===== */
.news-scroll {
    max-height: 200px;
    overflow-y: auto;
}

.news-item {
    overflow: hidden;
    white-space: nowrap;
    display: block;
    font-size: 1em;
    padding: 10px;
    margin: 0;
    width: 100%;
    text-overflow: ellipsis;
    transition: background-color 0.2s;
}

.news-item:nth-child(odd) {
    background-color: #06402B;
}

.news-item:nth-child(even) {
    background-color: #06402B;
}

.news-item:hover {
    background-color: #123c2e;
    cursor: pointer;
}

.news-item a {
    text-decoration: none;
    color: inherit;
}

/* ===== LEADER BOXES ===== */
.leader-list {
    list-style: none;
    padding: 0;
}

.leader-list li {
    padding: 5px 0;
    border-bottom: 1px solid #003300;
}

.leader-list li:last-child {
    border-bottom: none;
}

/* ===== TEAM LINKS ===== */
.team-link {
    display: block;
    padding: 15px;
    text-align: center;
    background-color: black;
    border: 2px solid #75F0BB;
    color: #75F0BB;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s;
}

.team-link:hover {
    background-color: #004000;
    transform: scale(1.05);
}

/* ===== LOADING STATES ===== */
.loading {
    text-align: center;
    padding: 20px;
    color: #75F0BB;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .grid-container4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    header {
        position: static;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 2px solid #75F0BB;
    }
    
    main {
        margin-left: 0;
    }
    
    .grid-container3,
    .grid-container4 {
        grid-template-columns: 1fr;
    }
    
    .grid-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    body {
        padding: 10px;
        border-width: 2px;
    }
    
    .box {
        padding: 10px;
    }
    
    h2 {
        font-size: 18px;
    }
}

/* Team Link Boxes */
.team-link {
    display: block;
    padding: 20px;
    text-align: center;
    background: linear-gradient(135deg, #001A00, #003300);
    border: 2px solid #75F0BB;
    color: #75F0BB;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.team-link:hover {
    background: linear-gradient(135deg, #004000, #006600);
    border-color: #00FF00;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(117, 240, 187, 0.3);
}
