﻿/* Modern styling */
.card {
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: none;
    overflow: hidden;
}

.card-body {
    padding: 12px;
}

h2 {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0;
}

.btn {
    border-radius: 5px;
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #3498db;
    border-color: #3498db;
}

    .btn-primary:hover {
        background-color: #2980b9;
        border-color: #2980b9;
    }

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

    .btn-success:hover {
        background-color: #218838;
        border-color: #1e7e34;
    }

.dropdown-menu {
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
}

.dropdown-item {
    padding: 8px 16px;
    transition: all 0.2s;
}

    .dropdown-item:hover {
        background-color: #f8f9fa;
    }



    .table thead th {
        background-color: #001f3f;
        color: white;
        font-weight: 500;
        padding: 12px 15px;
        vertical-align: middle;
        border: none;
    }

.table-responsive {

     overflow-x: hidden; 

}


    .table tbody tr:hover {
        background-color: #f8f9fa;
    }

.text-center {
    text-align: center;
}

/* Action buttons */
.action-buttons .btn {
    padding: 5px 10px;
    margin: 0 2px;
    font-size: 0.85rem;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.85rem;
}

/* Status badges */
.badge {
    padding: 5px 10px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.75rem;
}

.badge-active {
    background-color: #d4edda;
    color: #155724;
}

.badge-inactive {
    background-color: #f8d7da;
    color: #721c24;
}

/* Responsive adjustments */
@@media (max-width: 768px) {
    .btn-group {
        margin-bottom: 10px;
    }

    #btnShowExportToAddAmin {
        flex-direction: column;
        align-items: flex-end;
    }


    

    .action-buttons {
        text-align: center !important;
    }

        .action-buttons::before {
            display: none;
        }
}


.modal-header {
    background-color: #001f3f;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    z-index: 9998;
    display: none;
}

.spinner {
    border: 7px solid #e6e6e6;
    border-top: 7px solid #0066ff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}




div.dt-container .dt-search input {
    margin-left: -5px;
}

@media (max-width: 768px) {
    .table-responsive {
        border: 1px solid #dee2e6;
        overflow-x: auto;
        margin-bottom: 1rem;
    }

    .table-style {
        min-width: 600px; /* force horizontal scroll */
    }

    .table-style th,
    .table-style td{
        white-space: nowrap;
    }
}


.dropdown-item:hover {
    background-color: #001f3f;
    color:white;
}

.page-item.active .page-link {
    z-index: 3;
    color: #fff;
    background-color: #001f3f;
    border-color: #001f3f;
}
