/* Admin-Specific Responsive Styles */

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #333;
    padding-bottom: 20px;
}

@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 15px;
    }

    .admin-header div {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Responsive Table -> Cards Transformation */
.responsive-table {
    width: 100%;
    border-collapse: collapse;
    color: #e0e0e0;
}

.responsive-table thead tr {
    border-bottom: 2px solid #444;
}

.responsive-table th {
    text-align: left;
    padding: 12px;
    color: #aaa;
    font-size: 13px;
}

.responsive-table th a {
    color: #aaa;
    text-decoration: none;
}

.responsive-table th a:hover {
    color: var(--gold);
}

.responsive-table tbody tr {
    border-bottom: 1px solid #333;
    transition: background 0.15s;
}

.responsive-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.responsive-table td {
    padding: 12px;
}

@media (max-width: 768px) {

    .responsive-table,
    .responsive-table thead,
    .responsive-table tbody,
    .responsive-table th,
    .responsive-table td,
    .responsive-table tr {
        display: block;
    }

    .responsive-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .responsive-table tr {
        background: #252525;
        border: 1px solid #333;
        border-radius: 12px;
        margin-bottom: 20px;
        padding: 15px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }

    .responsive-table td {
        border: none;
        border-bottom: 1px solid #333;
        position: relative;
        padding: 10px 0 10px 45% !important;
        text-align: right !important;
        min-height: 40px;
        font-size: 14px;
        color: #fff;
    }

    .responsive-table td:last-child {
        border-bottom: none;
        padding-top: 15px !important;
        text-align: center !important;
        padding-left: 0 !important;
    }

    .responsive-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 40%;
        white-space: nowrap;
        font-weight: bold;
        color: var(--gold);
        text-transform: uppercase;
        font-size: 10px;
        text-align: left;
    }

    /* Hide some info on mobile if too much */
    .mobile-hide {
        display: none !important;
    }
}

/* Badges */
.badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    display: inline-block;
    font-weight: bold;
}

.badge-active {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

.badge-hidden {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.badge-vip {
    background: rgba(241, 196, 15, 0.2);
    color: var(--gold);
}

.badge-verified {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
}

/* Action forms in table card */
.responsive-table td form {
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .responsive-table td form {
        justify-content: center;
        width: 100%;
    }
}