/* ========================
   ROOT VARIABLES
======================== */

:root {
    --bg-main: #ffffff;
    --bg-secondary: #f5f5f7;
    --bg-glass: rgba(245, 245, 250, 0.8);

    --text-primary: #00bb00;
    --text-secondary: #f8f8fa;

    --border-color: hsla(0, 0%, 50%, 0.2);

    --preloader-bg: #ffffff;

    --timeline-bg: #f6f7f7;
    --timeline-accent: #2271b1;
    --global-text: #1d1d1f;
}

/* DARK MODE */
.theme-dark {
    --bg-main: #000000;
    --bg-secondary: #111111;
    --bg-glass: rgba(255, 255, 255, 0.08);

    --text-primary: #00bb00;
    --text-secondary: #f5f5f7;

    --border-color: hsla(0, 0%, 80%, 0.18);

    --preloader-bg: #000000;

    --timeline-bg: #111;
    --timeline-accent: #4da3ff;
    --global-text: #f5f5f7;
}

/* ========================
   PRELOADER
======================== */

#preloader-ss-irs {
    position: relative;
    display: flex;
    height: 33px;
    margin: 20px auto 0;
    align-items: center;
    justify-content: center;
    padding: 48px 0;
    background: var(--preloader-bg);
    width: 100%;
    border-radius: 12px;
}

#preloader-ss-irs span {
    position: absolute;
    height: 9px;
    width: 3px;
    background-color: var(--text-primary);
    border-radius: 3px;
    transform: rotate(calc(var(--i) * -30deg - 120deg)) translateY(12px);
    animation: ddd-preloader-animate 0.9s linear infinite;
    animation-delay: calc(-0.075s * var(--i));
}

@keyframes ddd-preloader-animate {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

/* ========================
   MAIN CONTAINER
======================== */

.ddd-container {
    color: var(--text-primary);
    padding: 22px;
    font-family: 'BB Pro Display', Sans-Serif;
    border-radius: 8px;
}

@media (max-width: 767px) {
    .ddd-container {
        padding: 16px;
    }
}

/* ========================
   TEXT
======================== */

.unified-color {
    color: var(--global-text) ;
}

.datetime {
    display: block;
    text-align: center;
    padding-bottom: 8px;
    font-weight: 600;
    font-size: 36px;
    line-height: 1em;
    letter-spacing: 0.01em;
}

@media (max-width: 767px) {
    .datetime {
        font-size: 24px;
        letter-spacing: 0.012em;
    }
}

.last-access-time54,
.user-info54 {
    text-align: center;
    font-weight: 600;
    font-size: 21px;
    letter-spacing: 0.01em;
    line-height: 1.5em;
    color: var(--text-primary);
    display: block;
}

@media (max-width: 767px) {
    .last-access-time54,
    .user-info54 {
        font-size: 19px;
    }
}

/* ========================
   TABLE
======================== */

.my-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    word-break: break-word;
    margin-block-end: 80px;
}

.my-table td,
.my-table th {
    padding: 8px;
    vertical-align: top;
    border: 1px solid var(--border-color);
    font-family: 'BB Pro Text', Sans-Serif;
    font-size: 14px;
    line-height: 1.32;
    letter-spacing: -0.016em;
    color: var(--text-primary);
}

/* ========================
   HEADER
======================== */

.header-cell {
    backdrop-filter: blur(20px);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
    padding: 12px 8px;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}

.sticky-header {
    position: sticky;
    top: 0;
    background: var(--bg-glass);
    z-index: 10;
    display: flex;
    margin-top: 32px;
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
}

/* ========================
   TABLE CONTAINER
======================== */

.table-container {
    overflow: hidden;
}

.table-container.ddd-ready {
    display: block !important;
}

/* ========================
   ADMIN TIMELINE (optional if used)
======================== */

.ddd-timeline {
    margin-left: 20px;
    padding-left: 10px;
}

.ddd-timeline li {
    margin-bottom: 14px;
    padding: 10px;
    background: var(--timeline-bg);
    border-left: 4px solid var(--timeline-accent);
    border-radius: 4px;
}

.ddd-timeline strong {
    color: var(--timeline-accent);
    font-size: 14px;
}

.ddd-timeline span {
    margin-left: 8px;
    color: #888;
    font-size: 12px;
}

.ddd-timeline pre {
    margin-top: 8px;
    background: #111;
    color: #00ff66;
    padding: 10px;
    overflow: auto;
    border-radius: 4px;
}


.my-table tbody tr:nth-child(odd) td,
.my-table tbody tr:nth-child(odd) th {
    background-color: transparent;
}

.my-table tbody tr:nth-child(even) td,
.my-table tbody tr:nth-child(even) th {
    background-color: rgba(128, 128, 128, 0.05);
}


.theme-dark .my-table tbody tr:nth-child(even) td,
.theme-dark .my-table tbody tr:nth-child(even) th {
    background-color: rgba(128, 128, 128, 0.2);
}

