﻿.account-container {
    background-image: url('../Images/account-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: repeat-y;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem 0;
}

/* Default (for login/register) */
.account-box {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
    opacity: 0.95;
}

/* ✅ For pages like UserList — make layout full width */
body.page-userlist .container {
    background-color: #fff;
    border-radius: 10px;
    padding: 15px 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 100% !important;
    max-width: 1200px;
}

/* ✅ Table Responsiveness */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
}

table {
    min-width: 700px; /* ensures columns don’t stack awkwardly */
    width: 100%;
    border-collapse: collapse;
}

    /* ✅ Table Style Enhancements */
    table th {
        white-space: nowrap;
        font-weight: 600;
    }

    table td {
        vertical-align: middle;
    }

/* ✅ Mobile optimization */
@media (max-width: 768px) {
    h2 {
        font-size: 1.4rem;
    }

    .container {
        padding: 10px !important;
    }

    table th, table td {
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .btn {
        font-size: 0.8rem;
        padding: 4px 8px;
    }

    .row.g-2 {
        flex-direction: column;
    }
}
/* 🔹 Actions column styling */
.table td .action-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}

    /* 🔹 Each button gets fixed width */
    .table td .action-buttons .btn {
        min-width: 90px;
        font-size: 0.85rem;
        padding: 5px 8px;
        border-radius: 6px;
        transition: transform 0.1s ease, opacity 0.2s ease;
    }

        /* 🔹 Hover effect for clarity */
        .table td .action-buttons .btn:hover {
            transform: scale(1.05);
            opacity: 0.9;
        }

/* 🔹 Button color consistency */
.btn-success {
    background-color: #28a745;
    border: none;
}

.btn-warning {
    background-color: #ffc107;
    border: none;
    color: #000;
}

.btn-primary {
    background-color: #007bff;
    border: none;
}

.btn-danger {
    background-color: #dc3545;
    border: none;
}

/* ✅ Responsive optimization */
@media (max-width: 768px) {
    .table td .action-buttons {
        flex-wrap: wrap;
        gap: 4px;
    }

        .table td .action-buttons .btn {
            min-width: 80px;
            font-size: 0.8rem;
        }
}