/* Shared ACP Styles - included in all ACP pages */

/* === Body === */
body {
    background-color: #022802;
    background-image: url('/layout-img/016.gif'), url('https://www.transparenttextures.com/patterns/3px-tile.png');
    background-repeat: repeat-x, repeat;
    background-position: top center, top center;
    background-attachment: fixed, fixed;
    color: #fff;
    font-family: 'Poppins', Verdana, sans-serif;
    font-size: 14px;
    margin: 0;
    padding: 80px 20px;
}

/* === Container Box === */
.acp-container {
    max-width: 960px;
    margin: 0 auto;
    background: rgba(2, 40, 2, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    padding: 30px 35px;
}

/* === Headings === */
.acp-container h1 {
    color: #ff75d8;
    margin-bottom: 5px;
    font-size: 1.8em;
}

.acp-container .welcome {
    opacity: 0.65;
    margin-bottom: 30px;
}

/* === Shared Button Base === */
.btn {
    padding: 9px 18px;
    border-radius: 5px;
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.25s;
    font-size: 0.88em;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: pointer;
}

.btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Tinted variants */
.btn-pink {
    border-color: rgba(255, 117, 216, 0.6);
    background: rgba(255, 117, 216, 0.1);
}

.btn-green {
    border-color: rgba(92, 184, 92, 0.6);
    background: rgba(92, 184, 92, 0.1);
}

.btn-blue {
    border-color: rgba(91, 192, 222, 0.6);
    background: rgba(91, 192, 222, 0.1);
}

.btn-red {
    border-color: rgba(217, 83, 79, 0.6);
    background: rgba(217, 83, 79, 0.1);
}

.btn-danger {
    border-color: rgba(180, 0, 0, 0.6);
    background: rgba(180, 0, 0, 0.1);
}

.btn-pink:hover {
    background: rgba(255, 117, 216, 0.3);
}

.btn-green:hover {
    background: rgba(92, 184, 92, 0.3);
}

.btn-blue:hover {
    background: rgba(91, 192, 222, 0.3);
}

.btn-red:hover {
    background: rgba(217, 83, 79, 0.3);
}

.btn-danger:hover {
    background: rgba(180, 0, 0, 0.3);
}

/* === Tables === */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th,
td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

th {
    background: rgba(255, 117, 216, 0.12);
    color: #ff75d8;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

.actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.meta {
    font-size: 0.8em;
    opacity: 0.55;
}

/* === Nav Menu (Dashboard) === */
.nav-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 25px;
}

/* === Select === */
select {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 117, 216, 0.5);
    padding: 8px 14px;
    border-radius: 5px;
    font-family: inherit;
    font-size: 0.9em;
    backdrop-filter: blur(6px);
}

/* === Icon color === */
i {
    color: var(--bold-color, #ff75d8) !important;
}

/* === Credit Pill === */
.acp-credit {
    position: fixed;
    bottom: 16px;
    right: 18px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 117, 216, 0.3);
    border-radius: 999px;
    padding: 5px 15px;
    font-size: 0.75em;
    color: rgba(255, 255, 255, 0.5) !important;
    white-space: nowrap;
    z-index: 9999;
    pointer-events: auto;
}

.acp-credit a {
    color: #ff75d8 !important;
    text-decoration: none;
    font-weight: 600;
}

.acp-credit a:hover {
    text-decoration: underline;
}

/*---------- ACP Responsive ------------- */

/* Tablet (≤ 900px) */
@media screen and (max-width: 900px) {
    body {
        padding: 40px 12px;
    }

    .acp-container {
        padding: 22px 20px;
    }

    /* Stack header row (title + clock) */
    .header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .live-clock {
        text-align: left;
    }

    /* Tables scroll horizontally */
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-menu {
        gap: 8px;
    }
}

/* Phone (≤ 600px) */
@media screen and (max-width: 600px) {
    body {
        padding: 20px 8px;
    }

    .acp-container {
        padding: 18px 14px;
    }

    .btn {
        font-size: 0.82em;
        padding: 8px 12px;
    }

    h1 {
        font-size: 1.4em;
    }

    .live-clock .clock-time {
        font-size: 1.3em;
    }

    /* Action buttons in table rows stack */
    .actions {
        flex-direction: column;
        gap: 5px;
    }

    /* Credit pill smaller */
    .acp-credit {
        font-size: 0.7em;
        padding: 4px 12px;
        bottom: 10px;
        right: 10px;
    }
}