﻿
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #f8faff, #e3f2fd);
    color: #2d2d2d;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* === MAIN CONTAINER === */
.container-fixed {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 1.2rem;
    padding: 30px;
    margin-top: 180px;
    margin-left: 320px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease-in-out;
}

/* === BUTTONS === */
.btn-primary {
    background: #ffffff; /* Default: white */
    color: #007bff;
    border: 2px solid #007bff;
    border-radius: 50px;
    padding: 10px 22px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.4s ease-in-out;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

    .btn-primary:hover {
        background: linear-gradient(90deg, #007bff, #00b4ff);
        color: #fff;
        box-shadow: 0 10px 25px rgba(0, 118, 255, 0.35);
        transform: translateY(-3px);
        border-color: transparent;
    }

    .btn-primary:active {
        transform: scale(0.97);
        box-shadow: 0 5px 15px rgba(0, 118, 255, 0.25);
    }

    /* Subtle glowing border reveal */
    .btn-primary::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 50px;
        background: linear-gradient(90deg, #007bff, #00b4ff);
        opacity: 0;
        transition: opacity 0.4s ease-in-out;
        z-index: 0;
    }

    .btn-primary:hover::before {
        opacity: 1;
    }

    .btn-primary span {
        position: relative;
        z-index: 1;
    }

    .btn-primary:hover span {
        color: #fff;
    }

/* === CARDS === */
.card {
    border-radius: 1.2rem;
    border: none;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(6px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 30px rgba(0, 118, 255, 0.15);
    }

.card-header {
    background: linear-gradient(90deg, #0066ff, #00c6ff);
    color: #fff;
    border-top-left-radius: 1.2rem;
    border-top-right-radius: 1.2rem;
    text-align: center;
    padding: 15px;
    font-size: 1.4rem;
    font-weight: 600;
}

/* === TABLE STYLING === */
.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.7rem;
}

    .table thead th {
        background: linear-gradient(90deg, #007bff, #00b4ff);
        color: #fff;
        font-weight: 600;
        padding: 12px;
        text-align: center;
        border: none;
        border-radius: 8px 8px 0 0;
    }

    .table tbody tr {
        background: #fff;
        border-radius: 10px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

        .table tbody tr:hover {
            background: #f4faff;
            transform: scale(1.01);
            box-shadow: 0 5px 20px rgba(0, 118, 255, 0.15);
        }

    .table td {
        padding: 12px;
        vertical-align: middle;
        text-align: center;
    }

/* === SWEETALERT2 POPUP === */
.swal2-popup {
    border-radius: 1rem !important;
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25) !important;
    backdrop-filter: blur(10px);
}

.swal2-title {
    color: #333 !important;
    font-weight: 600 !important;
}

.swal2-confirm {
    border-radius: 40px !important;
    background: linear-gradient(90deg, #007bff, #00c6ff) !important;
    padding: 8px 25px !important;
}

.swal2-popup.swal2-modal {
    transition: all 0.3s ease-in-out !important;
}

/* === NOTIFICATION POPUP === */
#notification-popup {
    position: fixed;
    top: 15%;
    right: -400px;
    width: 320px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    padding: 15px;
    z-index: 2000;
    transition: all 0.5s ease;
}

    #notification-popup.show {
        right: 25px;
    }

.closebtn {
    float: right;
    font-size: 24px;
    font-weight: bold;
    color: red;
    cursor: pointer;
}

/* === HEADINGS === */
.heading-layout1 {
    background: linear-gradient(90deg, #007bff, #00c6ff);
    color: white;
    border-radius: 1rem 1rem 0 0;
    text-align: center;
    padding: 15px;
    font-size: 1.5rem;
    font-weight: 600;
}

/* === RESPONSIVE DESIGN === */

/* 📱 Small Mobile */
@media (max-width: 480px) {
    .container-fixed {
        margin: 80px 10px;
        padding: 15px;
    }

    .btn-primary {
        width: 100%;
        font-size: 14px;
        padding: 12px 15px;
    }

    .table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        font-size: 11px;
        border-collapse: collapse;
    }

        .table thead th {
            padding: 8px;
            font-size: 12px;
            text-align: center;
        }

        .table tbody td {
            padding: 6px 8px;
            font-size: 11px;
            text-align: center;
        }

        /* ✅ Optional: make rows slightly compact */
        .table tbody tr {
            margin-bottom: 4px;
        }


    #notification-popup {
        width: 90%;
        right: 5%;
        bottom: 10px;
        top: auto;
    }

    /* ✅ SweetAlert popup adjustments */
    .swal2-popup {
        width: 90% !important;
        font-size: 14px !important;
        padding: 1rem !important;
    }

    /* ✅ Reduce header size for mobile */
    .card-header,
    .heading-layout1 {
        font-size: 1.1rem;
        padding: 10px;
    }
}

/* 📱 Medium Mobile (481px–768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .container-fixed {
        margin: 60px 20px;
    }

    .btn-primary {
        width: 80%;
    }

    .table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        font-size: 13px;
    }

    .swal2-popup {
        width: 80% !important;
    }
}

/* 💻 Tablets (769px–1000px) */
@media (min-width: 769px) and (max-width: 1000px) {
    .container-fixed {
        margin-left: 10px;
        margin-top: 150px;
        padding: 25px;
    }

    .btn-primary {
        width: 140px;
    }

    .swal2-popup {
        width: 60% !important;
    }
}

/* 🖥️ Laptops (1001px–1400px) */
@media (min-width: 1001px) and (max-width: 1400px) {
    .container-fixed {
        margin-left: 10px;
        margin-top: 180px;
    }

    .swal2-popup {
        width: 50% !important;
    }
}

/* 🖥️ Large Screens (1401px and above) */
@media (min-width: 1401px) {
    .container-fixed {
        margin-left: auto;
        margin-right: auto;
        max-width: 1400px;
        padding: 40px;
    }

    .swal2-popup {
        width: 40% !important;
    }

    .btn-primary {
        width: 180px;
        font-size: 16px;
    }
}





/* === SEARCH SECTION === */
.search-section {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    padding: 25px;
    margin-bottom: 30px;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

    .search-section:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 30px rgba(0, 118, 255, 0.15);
    }

    /* === FORM CONTROLS === */
    .search-section .form-control {
       /* border-radius: 50px;*/
        border: 1.5px solid #007bff;
       /* padding: 12px 18px;*/
        font-size: 15px;
        transition: all 0.3s ease;
        box-shadow: none;
    }

        .search-section .form-control:focus {
            border-color: #00b4ff;
            box-shadow: 0 0 0 4px rgba(0, 118, 255, 0.15);
            outline: none;
        }

/* === SEARCH BUTTON === */
#searchButton {
    background: linear-gradient(90deg, #007bff, #00b4ff);
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 12px 25px;
    border-radius: 50px;
    border: none;
    width: 100%;
    margin-top: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 118, 255, 0.25);
}

    #searchButton:hover:enabled {
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(0, 118, 255, 0.35);
        background: linear-gradient(90deg, #0066ff, #00c6ff);
    }

    #searchButton:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        background: #cbd5e1;
        box-shadow: none;
    }

/* === RESPONSIVE LAYOUT === */

/* Default Desktop */
.search-section .col-lg-4,
.search-section .col-lg-6,
.search-section .col-lg-12 {
    padding: 5px 10px;
}

/* Tablets (<= 991px) */
@media (max-width: 991px) {
    .search-section {
        padding: 20px;
    }

        .search-section .col-lg-4,
        .search-section .col-lg-6,
        .search-section .col-lg-12 {
            flex: 0 0 100%;
            max-width: 100%;
            margin-bottom: 10px;
        }
}

/* Small Devices (<= 576px) */
@media (max-width: 576px) {
    .search-section {
        padding: 15px;
    }

    #searchButton {
        font-size: 14px;
        padding: 10px;
    }

    .search-section .form-control {
        font-size: 14px;      
    }
}
