/* Reset base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #4f8cff 0%, #6ee7b7 100%);
    font-family: 'Segoe UI', Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(44, 62, 80, 0.15);
    max-width: 30%;
    width: 100%;
    text-align: center;
}

h1 {
    color: #2563eb;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    letter-spacing: 1px;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #374151;
    font-weight: 500;
}

input[type="text"], input[type="password"] {
    width: 100%;
    padding: 0.75rem 1rem;
    margin-bottom: 1.2rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

input[type="text"]:focus, input[type="password"]:focus {
    border-color: #2563eb;
    outline: none;
}

button {
    background: linear-gradient(90deg, #2563eb 0%, #38bdf8 100%);
    color: #fff;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-bottom: 0.5rem;
}

button:hover {
    background: linear-gradient(90deg, #1e40af 0%, #0ea5e9 100%);
    transform: translateY(-2px) scale(1.03);
}

.tracking-link {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f1f5f9;
    border-radius: 8px;
    color: #2563eb;
    font-size: 1.1rem;
    word-break: break-all;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.07);
}

.login-btn {
    background: linear-gradient(90deg, #f59e42 0%, #fbbf24 100%);
    color: #fff;
    margin-top: 1rem;
    position: absolute;
    width: fit-content;
    top: 0;
    right: 20px;
}

.login-btn:hover {
    background: linear-gradient(90deg, #ea580c 0%, #f59e42 100%);
}

@media (max-width: 500px) {
    .container {
        padding: 1.5rem 0.5rem;
        max-width: 95vw;
    }

    h1 {
        font-size: 1.3rem;
    }
}


.mt-30 {
    margin-top: 30px;
    text-align: left;
}

.logout-btn {
    position: absolute;
    top: 30px;
    right: 40px;
    background: #ef4444;
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    width: fit-content;
}

.logout-btn:hover {
    background: #b91c1c;
}

.dashboard-table-container {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.containerDashboard {
    position: relative;
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(44, 62, 80, 0.15);
    max-width: 90%;
    width: 100%;
    text-align: center;
    margin: 50px;
}

#tracking_table_wrapper {
    width: 100%;
}

.logout-btn {
    position: absolute;
    top: 30px;
    right: 40px;
    background: #ef4444;
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.logout-btn:hover {
    background: #b91c1c;
}

.dashboard-table-container {
    margin-top: 60px;
    display: flex;
    justify-content: center;
}

.containerDashboard {
    position: relative;
}

tfoot input {
    width: 100%;
    box-sizing: border-box;
}

.dataTables_wrapper .dt-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dataTables_wrapper .dataTables_filter {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.dataTables_wrapper .dt-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

#tracking_table {
    padding: 20px 0;
}

.dt-top {
    display: flex;
    justify-content: space-between;
    margin: 0 20px;
}

thead .dt-column-title input {
    display: none;
}

#header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

#dt-length-0 {
    margin-right: 20px;
}

#tracking_table td, #tracking_table th {
    text-align: left;
}

#tracking_table td:last-child, #tracking_table th:last-child {
    text-align: center;
}

.hidden-export {
    display: none;
}

.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 1;
    /* Sit on top */
    padding-top: 100px;
    /* Location of the box */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4);
    /* Black w/ opacity */
}

/* Modal Content */
.modal-content h3 {
    margin-bottom: 20px;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80% !important;
    text-align: left;
}

/* The Close Button */
.close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    justify-content: end;
    margin: 20px;
    display: flex;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

#spedModal td {
    vertical-align: middle;
    padding: 20px;
}

#spedModal {
    text-align: left;
    width: 100%;
}

.nav-item .nav-link:hover {
    color: #fff !important;
}

#filterTabsContent {
    background: #dfdfdf;
    padding: 10px 0;
    border: 1px solid #ccc;
}

.nav-link.active {
    background-color: #ffd600 !important;
}