html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card {
    transition: box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.08);
}

.footer {
    padding: 0.5rem 0;
    margin-top: auto;
}

.navbar {
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Micro-animations */
.btn {
    transition: all 0.2s ease;
}

.form-control:focus {
    box-shadow: 0 0 0 0.25rem var(--bs-primary-bg-subtle);
}

/* Narrow Action Column styling */
.table th.action-column,
.table td.action-column {
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    text-align: center !important;
    padding-left: 0.25rem !important;
    padding-right: 0.25rem !important;
    position: relative;
}

.table th.action-column {
    vertical-align: middle;
}

/* Row relative position to ensure proper absolute overlay layout */
.table tbody tr {
    position: relative;
}

/* Hover Action overlay on desktop */
@media (min-width: 992px) {
    .table td.action-column {
        position: relative;
    }

    .btn-actions-hover-wrapper {
        position: absolute;
        top: 50%;
        left: 0.5rem;
        transform: translateY(-50%);
        z-index: 100;
        display: inline-flex;
        align-items: center;
        justify-content: flex-start;
        height: 32px;
    }

    /* Wrap existing hover button group */
    .btn-actions-hover-wrapper .btn-actions-hover {
        opacity: 0;
        visibility: hidden;
        transform: translate3d(5px, -50%, 0) scale(0.95);
        transition: opacity 0.15s ease, visibility 0.15s ease, transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
        background-color: var(--bs-body-bg);
        border: 1px solid var(--bs-border-color);
        border-radius: 30px;
        padding: 0.15rem;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
        white-space: nowrap;
        pointer-events: auto;
        position: absolute;
        top: 50%;
        left: 0;
    }

    .btn-actions-hover-wrapper .btn-actions-hover.btn-group {
        display: inline-flex !important;
    }

    /* Slick round buttons inside hover menu */
    .btn-actions-hover-wrapper .btn-actions-hover .btn,
    .btn-actions-hover-wrapper .btn-actions-hover form .btn {
        border-radius: 30px !important;
        padding: 0.35rem 0.55rem !important;
        margin: 0 0.05rem !important;
        line-height: 1 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border: none !important;
        height: 28px;
        width: 28px;
    }

    /* Show on hover */
    .table tbody tr:hover .btn-actions-hover-wrapper .btn-actions-hover {
        opacity: 1;
        visibility: visible;
        transform: translate3d(0, -50%, 0) scale(1);
    }

    /* Simple subtle indicator icon (dots) shown by default */
    .action-indicator {
        opacity: 0.6;
        transition: opacity 0.15s ease, transform 0.15s ease;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: var(--bs-secondary-color);
        font-size: 0.95rem;
        width: 32px;
        height: 32px;
    }

    .table tbody tr:hover .action-indicator {
        opacity: 0;
        transform: scale(0.7);
        pointer-events: none;
    }
}

@media (max-width: 991.98px) {
    .table td.action-column {
        position: relative;
    }
    
    .table td.action-column .dropdown {
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

/* Narrow Action Column at the end of the table styling */
.table th.action-column-end,
.table td.action-column-end {
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    text-align: center !important;
    padding-left: 0.25rem !important;
    padding-right: 0.25rem !important;
    position: relative;
}

.table th.action-column-end {
    vertical-align: middle;
}

@media (min-width: 992px) {
    .table td.action-column-end {
        position: relative;
    }

    .btn-actions-hover-wrapper-end {
        position: absolute;
        top: 50%;
        right: 0.5rem;
        transform: translateY(-50%);
        z-index: 100;
        display: inline-flex;
        align-items: center;
        justify-content: flex-end;
        height: 32px;
    }

    /* Wrap existing hover button group for end column */
    .btn-actions-hover-wrapper-end .btn-actions-hover {
        opacity: 0;
        visibility: hidden;
        transform: translate3d(-5px, -50%, 0) scale(0.95);
        transition: opacity 0.15s ease, visibility 0.15s ease, transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
        background-color: var(--bs-body-bg);
        border: 1px solid var(--bs-border-color);
        border-radius: 30px;
        padding: 0.15rem;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
        white-space: nowrap;
        pointer-events: auto;
        position: absolute;
        top: 50%;
        right: 0;
    }

    .btn-actions-hover-wrapper-end .btn-actions-hover.btn-group {
        display: inline-flex !important;
    }

    /* Slick round buttons inside hover menu for end column */
    .btn-actions-hover-wrapper-end .btn-actions-hover .btn,
    .btn-actions-hover-wrapper-end .btn-actions-hover form .btn {
        border-radius: 30px !important;
        padding: 0.35rem 0.55rem !important;
        margin: 0 0.05rem !important;
        line-height: 1 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border: none !important;
        height: 28px;
        width: 28px;
    }

    /* Show on hover */
    .table tbody tr:hover .btn-actions-hover-wrapper-end .btn-actions-hover {
        opacity: 1;
        visibility: visible;
        transform: translate3d(0, -50%, 0) scale(1);
    }

    .table td.action-column-end .action-indicator {
        opacity: 0.6;
        transition: opacity 0.15s ease, transform 0.15s ease;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: var(--bs-secondary-color);
        font-size: 0.95rem;
        width: 32px;
        height: 32px;
    }

    .table tbody tr:hover .table td.action-column-end .action-indicator,
    .table tbody tr:hover .action-column-end .action-indicator {
        opacity: 0;
        transform: scale(0.7);
        pointer-events: none;
    }
}

@media (max-width: 991.98px) {
    .table td.action-column-end {
        position: relative;
    }
    
    .table td.action-column-end .dropdown {
        display: flex;
        justify-content: center;
        align-items: center;
    }
}


