/* ==========================================================================
   1. CORE BASE CONFIGURATIONS & AXIS LAYOUTS
   ========================================================================== */
body {
    background-color: #0d1117;
    color: #c9d1d9;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Default top layout alignment */
    min-height: 100vh;
    margin: 0;
    padding: 2rem 1rem;
    box-sizing: border-box;
}

/* Vertical grid centering context utilized exclusively on login prompt state */
body.login-view {
    align-items: center;
}

.container {
    width: 100%;
    max-width: 800px;
    display: block;
}

/* ==========================================================================
   2. AUTHENTICATION BOX INFRASTRUCTURE
   ========================================================================== */
.gate-box {
    background: #161b22;
    border: 1px solid #30363d;
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    margin: auto;
    animation: fadeIn 0.2s ease;
}
.gate-box h2 {
    color: #f0f6fc;
    margin-top: 0;
    font-size: 1.5rem;
    font-weight: 600;
}
.gate-box p {
    color: #8b949e;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}
input[type="password"] {
    background: #0d1117;
    border: 1px solid #30363d;
    color: #f0f6fc;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-size: 1rem;
    width: 85%;
    margin-bottom: 1rem;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
input[type="password"]:focus {
    border-color: #58a6ff;
}
.unlock-btn {
    background: #238636;
    color: white;
    border: 1px solid rgba(240, 246, 252, 0.1);
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 500;
    width: 85%;
    transition: background-color 0.15s;
}
.unlock-btn:hover {
    background: #2ea043;
}
#error-msg {
    color: #f85149;
    font-size: 0.85rem;
    margin-top: 1rem;
    display: none;
}

/* ==========================================================================
   3. DASHBOARD HEADER CONTAINER & ACTIONS
   ========================================================================== */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid #30363d;
    padding-bottom: 1rem;
    width: 100%;
}

h1.title {
    color: #f0f6fc;
    font-size: 1.75rem;
    margin: 0;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.logout-link {
    color: #f85149;
    background: transparent;
    border: none;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.logout-link:hover {
    color: #ff7b72;
    background-color: rgba(248, 81, 73, 0.1);
    border-color: rgba(248, 81, 73, 0.2);
}

/* ==========================================================================
   4. NAVIGATION TABS & FILTER COMPONENT ROW LAYOUTS
   ========================================================================== */
.filter-section-label {
    font-size: 0.75rem;
    color: #8b949e;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0.6rem;
    letter-spacing: 0.75px;
}

.tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-bottom: 1px solid #21262d;
    padding-bottom: 1.25rem;
    margin-bottom: 1.75rem;
}

.tab-btn {
    background-color: transparent;
    border: 1px solid transparent;
    color: #8b949e;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-btn:hover {
    color: #c9d1d9;
    background-color: #21262d;
}

.tab-btn.active {
    background-color: #21262d;
    color: #f0f6fc;
    border-color: #30363d;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   5. INTERACTIVE REAL-TIME SEARCH BAR INPUTS
   ========================================================================== */
.search-wrapper {
    margin-bottom: 2rem;
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    background-color: #161b22;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 0.65rem 1rem;
    color: #f0f6fc;
    font-size: 0.9rem;
    outline: none;
    box-sizing: border-box;
    transition: all 0.2s ease;
    box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.2);
}

.search-input:focus {
    border-color: #58a6ff;
    background-color: #0d1117;
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.15);
}

.search-input::placeholder {
    color: #484f58;
}

/* ==========================================================================
   6. OVERVIEW STANDINGS MATRIX GRID LAYOUT CARDS
   ========================================================================== */
.matrix-card {
    background-color: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 2.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.matrix-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.85rem;
}

.matrix-table th {
    color: #8b949e;
    border-bottom: 1px solid #30363d;
    padding: 0.6rem 0.75rem;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.matrix-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #21262d;
    color: #c9d1d9;
}

.matrix-table tr:last-child td {
    border-bottom: none;
}

.matrix-table tr:hover td {
    color: #f0f6fc;
    background-color: rgba(255, 255, 255, 0.01);
}

.matrix-v-tag {
    font-family: -apple-system, BlinkMacSystemFont, monospace;
    font-size: 0.8rem;
    color: #58a6ff;
    font-weight: 600;
    background-color: rgba(88, 166, 255, 0.1);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    border: 1px solid rgba(88, 166, 255, 0.15);
}

.matrix-v-none {
    color: #484f58;
    font-style: italic;
    font-size: 0.8rem;
}

/* ==========================================================================
   7. DYNAMIC COLLAPSIBLE RELEASE ENTRY CARDS
   ========================================================================== */
.release-entry {
    background-color: #161b22;
    border: 1px solid #30363d;
    border-radius: 6px;
    margin-bottom: 1rem;
    padding: 0;
    overflow: hidden;
    display: none;
    animation: fadeIn 0.25s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.card-trigger-header {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    cursor: pointer;
    user-select: none;
    background-color: #161b22;
    transition: background-color 0.15s ease;
}

.card-trigger-header:hover {
    background-color: #1c2128;
}

.entry-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    pointer-events: none;
}

.version {
    color: #f0f6fc;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: -0.25px;
}

.date {
    color: #8b949e;
    font-size: 0.85rem;
    margin-left: auto;
    margin-right: 1rem;
}

.card-content-panel {
    padding: 1.5rem;
    border-top: 1px solid #30363d;
    background-color: #0d1117;
    display: block;
}

.chevron-icon {
    color: #8b949e;
    font-size: 0.8rem;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    transform: rotate(90deg);
}

.release-entry.collapsed .card-content-panel {
    display: none;
}

.release-entry.collapsed .chevron-icon {
    transform: rotate(0deg);
}

/* ==========================================================================
   8. CHIP BADGES & ELEMENT DESIGN SETTINGS
   ========================================================================== */
.badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.25px;
}

.badge.prod {
    background-color: rgba(35, 134, 54, 0.12);
    color: #3fb950;
    border: 1px solid rgba(63, 185, 80, 0.25);
}
.badge.staging {
    background-color: rgba(187, 128, 255, 0.12);
    color: #bc8cff;
    border: 1px solid rgba(188, 140, 255, 0.25);
}
.badge.internal {
    background-color: rgba(248, 81, 73, 0.12);
    color: #f85149;
    border: 1px solid rgba(248, 81, 73, 0.25);
}
.badge.tenant {
    background-color: rgba(88, 166, 255, 0.12);
    color: #58a6ff;
    border: 1px solid rgba(56, 139, 253, 0.25);
}

.issue-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    background-color: #161b22;
    border: 1px solid #30363d;
    border-radius: 6px;
    overflow: hidden;
}

.issue-table th {
    background-color: #161b22;
    border-bottom: 1px solid #21262d;
    text-align: left;
    padding: 0.75rem 1rem;
    color: #f0f6fc;
    font-weight: 600;
}

.issue-table td {
    padding: 1rem;
    vertical-align: top;
    color: #c9d1d9;
}

.issue-table tr:not(:last-child) {
    border-bottom: solid 1px #21262d;
}

.issue-table td.issue-desc {
    color: #8b949e;
    font-size: 0.85rem;
    line-height: 1.5;
}

.issue-link {
    color: #58a6ff;
    text-decoration: none;
}

.issue-link:hover {
    text-decoration: underline;
}

.section-title {
    color: #f0f6fc;
    font-weight: 600;
    margin: 1.5rem 0 0.5rem 0;
    font-size: 0.95rem;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    background-color: #21262d;
    color: #58a6ff;
    border: 1px solid #30363d;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    margin: 0.5rem 0;
    transition: background 0.2s, border-color 0.2s;
}

.download-btn:hover {
    background-color: #30363d;
    border-color: #8b949e;
    color: #f0f6fc;
}

/* ==========================================================================
   9. PAGINATION SYSTEM BAR LAYOUT
   ========================================================================== */
.pagination-deck {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #21262d;
}

.page-btn {
    background-color: #161b22;
    border: 1px solid #30363d;
    color: #c9d1d9;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
}

.page-btn:hover:not(:disabled) {
    background-color: #21262d;
    border-color: #8b949e;
    color: #f0f6fc;
}

.page-btn:disabled {
    color: #484f58;
    border-color: #21262d;
    cursor: not-allowed;
    opacity: 0.6;
}

.page-info {
    font-size: 0.85rem;
    color: #8b949e;
    margin: 0 0.5rem;
}

/* ==========================================================================
   10. RENDER TRANSITION ANIMATIONS
   ========================================================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(3px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
