/* Global Dashboard V2 Styles (Based on Admin Dashboard V2) */

:root {
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-color: #4facfe;
    --success-color: #00f260;
    --warning-color: #f5af19;
    --danger-color: #f12711;
    --sidebar-width: 250px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    color: var(--text-primary);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
}

.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* --- Sidebar --- */
.sidebar {
    width: var(--sidebar-width);
    background: rgba(15, 12, 41, 0.8);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    border-right: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: left 0.3s ease-in-out;
}

.sidebar-header {
    padding: 2rem 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.sidebar-header .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
    padding: 0 1rem;
}

.sidebar-header .logo img {
    max-height: 40px;
    width: auto;
    margin-right: 10px;
    filter: brightness(0) invert(1);
}

.sidebar-header .logo .logo-text {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 12px;
    font-weight: 500;
}

.nav-item i {
    font-size: 1.1rem;
    margin-right: 0.8rem;
    transition: color 0.3s ease;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    padding-left: 1.5rem;
}

.nav-item:hover i {
    color: var(--accent-color);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(79, 172, 254, 0.15) 0%, rgba(0, 242, 96, 0.05) 100%);
    color: #4facfe;
    border: 1px solid rgba(79, 172, 254, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.nav-item.active i {
    color: #4facfe;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 1rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(79, 172, 254, 0.3) transparent;
}

.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(79, 172, 254, 0.3);
    border-radius: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(79, 172, 254, 0.5);
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--glass-border);
    margin-top: auto;
}

/* --- Main Content --- */
.main-content {
    flex: 1;
    padding: 2rem;
    margin-left: var(--sidebar-width);
    transition: margin-left 0.3s ease-in-out;
    width: calc(100% - var(--sidebar-width));
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header h2 {
    margin: 0;
    font-size: 1.8rem;
    background: linear-gradient(to right, #4facfe, #00f260);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header p {
    margin: 0.5rem 0 0;
    color: var(--text-secondary);
}

.date-display {
    text-align: right;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.8rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.stat-card i {
    font-size: 2.5rem;
    padding: 1rem;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
}

.stat-card:nth-child(1) i {
    color: #4facfe;
}

.stat-card:nth-child(2) i {
    color: #00f260;
}

.stat-card:nth-child(3) i {
    color: #f5af19;
}

.stat-card:nth-child(4) i {
    color: #f12711;
}

.stat-card h3 {
    margin: 0;
    font-size: 2.2rem;
    font-weight: 700;
}

.stat-card p {
    margin: 0.2rem 0 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Action Buttons (Icon Buttons in Tables) */
.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    margin: 0 4px;
}

.btn-action i {
    font-size: 1rem;
}

.btn-action:hover {
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Specific Action Colors */
.btn-edit:hover {
    background: rgba(79, 172, 254, 0.2);
    border-color: #4facfe;
    color: #4facfe;
    box-shadow: 0 5px 15px rgba(79, 172, 254, 0.3);
}

.btn-delete:hover {
    background: rgba(241, 39, 17, 0.2);
    border-color: #f12711;
    color: #f12711;
    box-shadow: 0 5px 15px rgba(241, 39, 17, 0.3);
}

.btn-schedule:hover {
    background: rgba(245, 175, 25, 0.2);
    border-color: #f5af19;
    color: #f5af19;
    box-shadow: 0 5px 15px rgba(245, 175, 25, 0.3);
}

.btn-leaderboard:hover {
    background: rgba(0, 242, 96, 0.2);
    border-color: #00f260;
    color: #00f260;
    box-shadow: 0 5px 15px rgba(0, 242, 96, 0.3);
}

/* Quick Actions */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    cursor: pointer;
    gap: 0.8rem;
}

.action-btn:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.action-btn i {
    font-size: 2rem;
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.action-btn:hover i {
    transform: scale(1.1);
}

.action-btn span {
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
}

/* Button Styles */
.btn-primary,
.btn-secondary,
.btn-warning {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), #00f260);
    color: white;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 172, 254, 0.4);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-color);
}

.btn-warning {
    background: linear-gradient(135deg, #f5af19, #f12711);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 175, 25, 0.3);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 175, 25, 0.4);
}

/* Form Controls */
.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(0, 0, 0, 0.3) !important;
    /* Force dark background */
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary) !important;
    /* Force white text */
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(0, 0, 0, 0.4) !important;
    box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.1);
}

.form-control::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Checkbox Styling */
input[type="checkbox"] {
    accent-color: var(--accent-color);
    transform: scale(1.2);
    margin-right: 5px;
    cursor: pointer;
}

.checkbox-group {
    display: flex;
    align-items: center;
    color: var(--text-primary);
    cursor: pointer;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}


/* Content Panels */
.content-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.content-panel h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.3rem;
    color: var(--text-primary);
}

.content-panel h3 i {
    color: var(--accent-color);
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

.glass-table,
.data-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text-primary);
}

.glass-table th,
.data-table th,
.glass-table td,
.data-table td {
    padding: 1.2rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-table th,
.data-table th {
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.glass-table tr:last-child td,
.data-table tr:last-child td {
    border-bottom: none;
}

.glass-table tr:hover td,
.data-table tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

/* Badges */
.badge {
    padding: 0.4rem 0.8rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.badge-success {
    background: rgba(0, 242, 96, 0.15);
    color: #00f260;
    border: 1px solid rgba(0, 242, 96, 0.3);
}

.badge-warning {
    background: rgba(245, 175, 25, 0.15);
    color: #f5af19;
    border: 1px solid rgba(245, 175, 25, 0.3);
}

.badge-danger {
    background: rgba(241, 39, 17, 0.15);
    color: #f12711;
    border: 1px solid rgba(241, 39, 17, 0.3);
}

.badge-info {
    background: rgba(79, 172, 254, 0.15);
    color: #4facfe;
    border: 1px solid rgba(79, 172, 254, 0.3);
}

/* Responsive */
@media (max-width: 992px) {
    .sidebar {
        left: -250px;
    }

    .sidebar.open {
        left: 0;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 1.5rem;
    }

    .menu-toggle {
        display: block;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .date-display {
        text-align: center;
    }
}

/* Modal Styles - Modern Glassmorphism Design */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: rgba(26, 26, 46, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    margin: 5% auto;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: 90%;
    max-width: 600px;
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    position: relative;
    animation: modalSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-80px) scale(0.95);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.close-btn {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    z-index: 1;
}

.close-btn:hover,
.close-btn:focus {
    color: #fff;
    background: rgba(241, 39, 17, 0.2);
    border-color: var(--danger-color);
    transform: rotate(90deg);
    box-shadow: 0 5px 15px rgba(241, 39, 17, 0.3);
    text-decoration: none;
}

.modal h3 {
    margin-top: 0;
    margin-bottom: 2rem;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    background: linear-gradient(to right, #4facfe, #00f260);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(79, 172, 254, 0.2);
}

.modal form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.modal .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 0;
}

.modal .form-group label {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

/* Form Row for Inline Fields */
.modal .content-panel .form-row,
form .form-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1rem !important;
    margin-bottom: 1rem !important;
}

.modal .form-row .form-group {
    margin-bottom: 0;
}

/* Responsive - Stack on small screens */
@media (max-width: 600px) {

    .modal .content-panel .form-row,
    form .form-row {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 1rem !important;
        margin-bottom: 1rem !important;
    }
}

.modal input,
.modal select,
.modal textarea {
    padding: 0.9rem 1.2rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.modal input:focus,
.modal select:focus,
.modal textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.1), 0 5px 15px rgba(79, 172, 254, 0.2) inset;
}

.modal button[type="submit"],
.modal .btn-primary {
    margin-top: 1rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #4facfe 0%, #00f260 100%);
    box-shadow: 0 6px 20px rgba(79, 172, 254, 0.3);
}

.modal button[type="submit"]:hover,
.modal .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(79, 172, 254, 0.4);
}

.modal .form-group-inline {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.modal .form-group-inline:hover {
    background: rgba(255, 255, 255, 0.05);
}

.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(79, 172, 254, 0.3);
    border-radius: 10px;
}

/* Image Preview in Settings */
.setting-img-preview {
    max-width: 150px;
    max-height: 80px;
    display: block;
    margin-bottom: 10px;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 5px;
    background: rgba(255, 255, 255, 0.05);
}

.setting-img-preview.favicon {
    max-width: 32px;
    max-height: 32px;
}

.setting-img-preview.profile {
    max-width: 100px;
    max-height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

/* No Scroll Class - মোবাইল মেনু বা modal খোলা অবস্থায় body scroll বন্ধ করার জন্য */
body.no-scroll {
    overflow: hidden;
}

/* Mobile Sidebar Overlay */
@media (max-width: 992px) {
    .sidebar.open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
        backdrop-filter: blur(2px);
    }
}

/* Loader Animation */
.loader {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-style: italic;
}

.loader::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {

    0%,
    20% {
        content: '.';
    }

    40% {
        content: '..';
    }

    60%,
    100% {
        content: '...';
    }
}

/* Form Row for Inline Fields (Reports Page) */
.content-panel .form-row,
form .form-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1rem !important;
    margin-bottom: 1rem !important;
}

.form-row .form-group {
    margin-bottom: 0;
}

/* Button Group Styling */
.button-group {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.button-group button {
    flex: 1;
    min-width: 120px;
}

/* Mobile responsive for form-row */
@media (max-width: 768px) {

    .content-panel .form-row,
    form .form-row {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 1rem !important;
        margin-bottom: 1rem !important;
    }

    .button-group {
        flex-direction: column;
    }

    .button-group button {
        width: 100%;
    }
}

/* =========================================
   Website Settings - Pricing & Testimonials
   ========================================= */

/* Pricing Plan Cards */
.pricing-admin-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.pricing-admin-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.pricing-admin-card.popular {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(var(--primary-rgb), 0.1) 100%);
}

.pricing-admin-card h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.pricing-admin-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.pricing-admin-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.pricing-admin-card ul li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
    padding-left: 1.2rem;
    position: relative;
}

.pricing-admin-card ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* Testimonial Cards */
.testimonial-admin-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
}

.admin-testimonial-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.testimonial-admin-card h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.testimonial-admin-card p {
    color: var(--text-secondary);
    font-style: italic;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

/* Actions (Edit/Delete Buttons) */
.pricing-admin-card .actions,
.testimonial-admin-card .actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
}

.btn-action {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-action:hover {
    background: var(--primary-color);
    color: white;
}

.btn-action.btn-delete:hover {
    background: var(--danger-color);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .testimonial-admin-card {
        flex-direction: column;
        text-align: center;
    }

    .testimonial-admin-card .actions {
        position: static;
        justify-content: center;
        margin-top: 1rem;
    }
}

/* --- Dynamic Action Buttons Fix --- */
.actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-end;
    /* Right aligned usually looks better in tables, or flex-start if preferred */
}

/* Force horizontal layout even in responsive table cells if needed */
.glass-table td.actions {
    display: flex;
    gap: 0.5rem;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none !important;
    color: #fff !important;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 0;
    /* Remove default margins */
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    filter: brightness(1.1);
}

/* Specific Colors */
.btn-edit {
    background: linear-gradient(135deg, #11998e, #38ef7d);
}

/* Green */
.btn-delete {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
}

/* Red */
.btn-schedule {
    background: linear-gradient(135deg, #fce38a, #f38181);
    color: #fff;
}

/* Orange/Pink */
.btn-leaderboard {
    background: linear-gradient(135deg, #2193b0, #6dd5ed);
}

/* Blue */

/* Default <a> links in actions column */
a.btn-action:not(.btn-edit):not(.btn-delete):not(.btn-schedule):not(.btn-leaderboard) {
    background: linear-gradient(135deg, #667eea, #764ba2);
    /* Purple */
}