﻿/* ================= GLOBAL FIX ================= */
body {
    overflow-x: hidden !important;
    background: #f5f6f8;
}

/* ================= COMMON BUTTON ================= */
.btn {
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 13px;
    transition: all 0.2s ease;
}

    .btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    }

/* ===================================================== */
/* ================= REGISTRATION FORM ================= */
/* ===================================================== */

.form-container {
    max-width: 900px;
    margin: 15px auto;
    background: #ffffff;
    /* 🔥 DECREASE HEIGHT HERE */
    padding: 10px; /* reduce from 16px or 20px */

    border-radius: 12px;
    border: 2px solid #000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* INPUT */
.custom-input .form-control,
.custom-input .form-select {
    height: 40px !important;
    font-size: 13px;
    border-radius: 6px;
    border: 1.5px solid #000 !important;
    padding: 6px 10px;
    box-shadow: none !important;
}

/* TEXTAREA */
.custom-input textarea {
    height: 70px !important;
}

/* HOVER */
.custom-input .form-control:hover,
.custom-input .form-select:hover {
    box-shadow: 0 0 4px rgba(0,0,0,0.15);
}

/* FOCUS */
.custom-input .form-control:focus,
.custom-input .form-select:focus {
    border-color: #0d6efd !important;
    box-shadow: 0 0 6px rgba(13,110,253,0.3) !important;
}

/* FLOATING LABEL */
.form-floating > label {
    font-size: 12px !important;
    padding: 0.5rem 0.6rem !important;
}

/* REMOVE DOUBLE TEXT */
.form-floating > .form-control::placeholder {
    color: transparent !important;
}

/* ACTIVE LABEL */
.form-floating .form-control:focus ~ label,
.form-floating .form-control:not(:placeholder-shown) ~ label {
    color: #0d6efd;
}

/* SELECT FIX */
.form-floating > .form-select {
    padding-top: 1.2rem !important;
    padding-bottom: 0.3rem !important;
}

/* ===================================================== */
/* ================= TRANSMITTAL ================= */
/* ===================================================== */

.trans-container {
    max-width: 1000px;
    margin: auto;
}

.trans-card {
    border: 2px solid #000;
    border-radius: 12px;
    background: #fff;
    padding: 15px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transition: 0.3s;
}

    .trans-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    }

    /* INPUT FIX */
    .trans-card .form-control {
        border: 1px solid #000;
        height: 38px;
    }

/* DOCUMENT LIST */
.doc-box {
    max-height: 220px;
    overflow-y: auto;
}

.doc-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border: 1px solid #000;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}

    .doc-item:hover {
        background: #f8f9fa;
    }

.doc-text {
    font-size: 13px;
}

/* ===================================================== */
/* ================= DOCUMENT LIST ================= */
/* ===================================================== */
 print {
    table {
        font-size: 11px !important;
    }

    th, td {
        padding: 4px !important;
    }
}


.list-container {
    max-width: 1100px;
    margin: auto;
}

/* SEARCH */
.search-box {
    border: 2px solid #000;
    border-radius: 6px;
    padding: 8px;
}

    .search-box:focus {
        border-color: #0d6efd;
        box-shadow: 0 0 6px rgba(13,110,253,0.3);
    }

/* TABLE */
.custom-table {
    background: #fff;
    border: 2px solid #000;
}

    .custom-table th {
        text-align: center;
        font-size: 13px;
    }

    .custom-table td {
        font-size: 13px;
    }

    /* ROW HOVER */
    .custom-table tbody tr:hover {
        background: #f8f9fa;
    }

/* STATUS COLORS */
.status-badge {
    padding: 5px 8px;
    border-radius: 5px;
    font-size: 12px;
}

/* PRINT ONLY TABLE */
@media print {

    body * {
        visibility: hidden;
    }

    #printTableArea, #printTableArea * {
        visibility: visible;
    }

    #printTableArea {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }



    /* HEADER ALIGN */
    .form-container h4 {
        font-size: 18px;
    }

    /* UPLOAD BUTTON */
    input[type="file"] {
        display: none;
    }

    /* HEADER BAR LOOK */
    .form-container .d-flex {
        border-bottom: 1px solid #ddd;
        padding-bottom: 8px;
    }
}

/* ===================================================== */
/* ================= MOBILE ================= */
/* ===================================================== */

@media (max-width: 768px) {

    .form-container,
    .trans-container,
    .list-container {
        max-width: 100%;
        margin: 10px;
        padding: 10px;
    }

    .custom-input .form-control,
    .custom-input .form-select,
    .trans-card .form-control {
        height: 36px !important;
        font-size: 12px;
    }

    .btn {
        width: 100%;
        margin-bottom: 6px;
    }

    .doc-box {
        max-height: 180px;
    }
}



/* ===================================================== */
/* ================= DASHBOARD ================= */
/* ===================================================== */



/* FILTER CONTAINER */
.filter-panel {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px;
    border: 2px solid #000;
    border-radius: 10px;
    background: #fff;
}

    /* BUTTON STYLE */
    .filter-panel .btn {
        flex: 1;
        min-width: 120px;
        font-size: 13px;
        border-radius: 8px;
    }

/* MOBILE: 2 BUTTONS PER ROW */
@media (max-width: 576px) {

    .filter-panel .btn {
        flex: 0 0 48%;
    }
}






/*footer*/


/* MATCH NAVBAR DARK STYLE */
.footer-custom {
    background-color: #000;
    color: #fff;
    padding: 6px 0;
    border-top: 1px solid #222;
}

/* WhatsApp ICON SMALL STYLE */
/* ===== FOOTER STYLE (MATCH NAVBAR) ===== */
.footer-custom {
    background-color: #000;
    color: #fff;
    padding: 6px 0;
    border-top: 1px solid #222;
}

/* ===== FLOATING WHATSAPP ICON (BOTTOM RIGHT) ===== */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: 0.3s ease;
    z-index: 999;
}

    /* Hover effect */
    .whatsapp-float:hover {
        transform: scale(1.1);
        background-color: #1ebe5d;
    }



   /* loader*/

.loader-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #000000;
}

.spinner {
    width: 55px;
    height: 55px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 18px;
}

.brand {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 2px;
    display: flex;
    gap: 4px;
}

.smart {
    color: #ffffff;
    font-weight: 700;
}

.edms {
    color: #ffffff;
    font-weight: 900;
    text-transform: uppercase;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.7);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}