/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

/* Aplus Sports Text (Top Left Corner) */
.brand-logo {
    position: fixed;
    top: 20px;
    left: 30px;
    font-size: 28px;
    font-weight: bold;
    color: #333;
    font-family: 'Poppins', sans-serif;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

/* Centered Title with Cricket-Themed Colors */
.page-title {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 26px;
    font-weight: bold;
    font-family: 'Poppins', sans-serif;
    color: #1a237e;
    text-shadow:
        2px 2px 5px rgba(0, 255, 0, 0.5),
        /* Neon Green glow */
        0px 0px 10px rgba(255, 255, 255, 0.5);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #1a237e, #283593, #4baa11);
    background-clip: text;
    /* Standard property */
    -webkit-background-clip: text;
    /* WebKit (Chrome, Safari) */
    -moz-background-clip: text;
    /* Mozilla (Firefox) */
    -ms-background-clip: text;
    /* Microsoft (Edge, older IE) */
    -o-background-clip: text;
    /* Opera */
    -webkit-text-fill-color: transparent;
    /* Keep text color transparent for gradient */
    z-index: 999;
    white-space: nowrap;
    /* Prevents text from breaking */
}


/* Border Bottom - 80% width */
.page-title::after {
    content: "";
    position: absolute;
    left: 10%;
    bottom: 0;
    width: 80%;
    height: 4px;
    background-color: #ffb300;
    /* Cricket bat golden stripe */
}

/* Home Button (Top Right Corner) */
.home-button {
    position: fixed;
    top: 15px;
    right: 30px;
    z-index: 1000;
}

.home-icon {
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.home-icon:hover {
    transform: scale(1.1);
}

.container {
    width: 90%;
    max-width: 850px;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Card Style */
.card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.15);
}

.month-year {
    font-size: 20px;
    font-weight: bold;
    color: #000000;
    /* White text for contrast */
    background: linear-gradient(45deg, #006400, #228B22);
    /* Grass Green Gradient */
    padding: 12px 20px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: inline-block;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

/* Navigation Buttons */
.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.btn {
    background: linear-gradient(45deg, #A0522D, #8B4513);
    /* Ground/Earthy Brown Gradient */
    color: white;
    padding: 14px 20px;
    border: none;
    border-radius: 50px;
    /* Rounded button */
    font-weight: bold;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    outline: none;
}

.btn:hover {
    background: linear-gradient(45deg, #8B4513, #5A2D0C);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.btn:disabled {
    background: #bcbcbc;
    cursor: not-allowed;
    box-shadow: none;
}

/* Calendar Styles */
.calendar {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 15px;
    border: 1px solid #ddd;
    text-align: center;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
}

th {
    background: #2d2d2d;
    /* Black */
    color: white;
}


/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(to bottom, #ffffff, #d2b48c);
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.3);
    width: 80%;
    max-width: 400px;
    /* Limit modal width */
    text-align: center;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    z-index: 1000;
    border: 1px solid #228B22;
}

.modal.active {
    display: block;
    opacity: 1;
}

/* Overlay */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.modal-overlay.active {
    display: block;
}

/* Ensure modal content is properly sized */
.modal-content {
    margin: auto;
    padding: 8px;
    border-radius: 8px;
}

/* Modal Header */
.modal-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2F4F4F;
    margin-bottom: 8px;
}

/* Modal Text */
.modal-content p {
    font-size: 16px;
    color: #333;
    margin-bottom: 12px;
}

/* Styled Dropdown */
.modal-content select {
    width: 100%;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #006400;
    margin-bottom: 12px;
    background: #FFF;
    color: #333;
    font-weight: bold;
}

/* Buttons */
.modal-buttons {
    display: flex;
    justify-content: space-between;
    gap: 5px;
}

.modal-buttons button {
    flex: 1;
    padding: 10px;
    font-size: 14px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s ease-in-out;
}

/* Confirm Button */
.confirm {
    background: #006400;
    color: white;
}

.confirm:hover {
    background: #004d00;
}

/* Cancel Button */
.cancel {
    background: #8B0000;
    color: white;
}

.cancel:hover {
    background: #5c0000;
}

/* Fix Form Group Alignment */
.form-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center form items */
    margin-bottom: 12px;
}

.form-group input,
.form-group select {
    width: 100%;
    max-width: 350px;
    /* Prevent full stretching */
    padding: 8px;
    border: 1px solid #bdbdbd;
    border-radius: 4px;
}

/* Important Note */
.important-note {
    color: red;
    font-weight: bold;
    font-size: 12px;
    margin-top: 2px;
}

/* Payment Container */
.payment-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 80%;
    max-width: 380px;
    padding: 15px;
    border-radius: 12px;
    background: #f0f5f9;
    /* Light bluish-gray background */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    /* Soft shadow */
    margin: auto;
}

/* QR Code Box */
.qr-box {
    text-align: center;
    flex: 1;
}

.qr-box img {
    width: 130px;
    /* Slightly larger QR code */
    height: auto;
    border: 2px solid #ddd;
    padding: 8px;
    border-radius: 10px;
    background: white;
}

/* Payment Details */
.payment-details {
    flex: 1.5;
    text-align: left;
    padding-left: 15px;
}

.info {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    background: #eaf0f6;
    /* Light blue-gray background */
    padding: 6px 10px;
    border-radius: 6px;
    margin-bottom: 6px;
    display: inline-block;
}

.amount {
    font-size: 16px;
    font-weight: bold;
    color: #155724;
    background: #d4edda;
    /* Light green background */
    padding: 8px 12px;
    border-radius: 8px;
    display: inline-block;
    box-shadow: 0 2px 5px rgba(0, 128, 0, 0.2);
}

.advance {
    font-size: 14px;
    font-weight: bold;
    color: #721c24;
    background: #f8d7da;
    /* Light red background */
    padding: 6px 10px;
    border-radius: 6px;
    display: inline-block;
}

/* UTR Section */
.utr-section {
    text-align: center;
    margin-top: 12px;
}

.utr-section input {
    width: 85%;
    max-width: 320px;
    padding: 8px;
    border: 1px solid #bbb;
    border-radius: 6px;
    text-align: center;
}

.note {
    font-size: 12px;
    color: #666;
}

/* Button Group */
.button-group {
    display: flex;
    justify-content: space-between;
    width: 90%;
    max-width: 330px;
    margin: auto;
    margin-top: 12px;
}

.btn {
    padding: 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: 0.3s;
}

.btn.confirm {
    background-color: #28a745;
    color: white;
}

.btn.cancel {
    background-color: #dc3545;
    color: white;
}

.btn:hover {
    opacity: 0.85;
}


/* Modal Header */
.modal-header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 15px;
    border-bottom: 1px solid #ddd;
    background: #f4f4f4;
}

.modal-header h3 {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin: 0;
    flex-grow: 1;
    text-align: center;
}

/* Styling for the eventDropdown */
#eventDropdown {
    width: 100%;
    padding: 6px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
    outline: none;
    transition: border-color 0.3s;
}

/* Hover and focus effects for the dropdown */
#eventDropdown:hover,
#eventDropdown:focus {
    border-color: #4CAF50;
    background-color: #e8f5e8;
}

/* Styling for the options inside the dropdown */
#eventDropdown option {
    padding: 8px;
    font-size: 14px;
    background-color: #fff;
    color: #333;
}

/* Active option (when clicked) */
#eventDropdown option:checked {
    background-color: #4CAF50;
    color: white;
}



/* Extra Small Devices (Phones) */
@media (max-width: 480px) {
    .container {
        width: 95%;
        padding: 10px;
    }

    .card {
        padding: 10px;
    }

    .calendar {
        display: block;
        overflow-x: auto;
        /* Enable horizontal scrolling */
        white-space: nowrap;
    }

    th,
    td {
        padding: 8px;
        font-size: 12px;
    }

    .month-year {
        font-size: 14px;
        padding: 6px 10px;
    }
}

/* Small Devices (Tablets) */
@media (max-width: 768px) {
    .container {
        width: 90%;
        padding: 15px;
    }

    .card {
        padding: 15px;
    }

    .calendar {
        display: block;
        overflow-x: auto;
        /* Enable horizontal scrolling */
        white-space: nowrap;
    }

    th,
    td {
        padding: 10px;
        font-size: 14px;
    }

    .month-year {
        font-size: 16px;
        padding: 8px 12px;
    }
}

/* Medium Devices (Laptops) */
@media (max-width: 1024px) {
    .container {
        width: 85%;
    }

    th,
    td {
        font-size: 16px;
        padding: 12px;
    }

}

/* Large Screens */
@media (min-width: 1200px) {
    .container {
        width: 75%;
    }
}

/* Small Devices (Mobile Phones) */
@media screen and (max-width: 600px) {
    .brand-logo {
        font-size: 20px;
        left: 20px;
    }

    .page-title {
        font-size: 18px;
        top: 60px;
    }

    .home-button {
        right: 20px;
    }

    .home-icon {
        width: 30px;
        height: 30px;
    }
}

/* Medium Devices (Tablets) */
@media screen and (min-width: 601px) and (max-width: 1024px) {
    .brand-logo {
        font-size: 24px;
        left: 25px;
    }

    .page-title {
        font-size: 18px;
        top: 40px;
    }

    .home-button {
        right: 25px;
    }

    .home-icon {
        width: 35px;
        height: 35px;
    }
}

/* Large Devices (Laptops & Desktops) */
@media screen and (min-width: 1025px) and (max-width: 1440px) {
    .brand-logo {
        font-size: 28px;
        left: 40px;
    }

    .page-title {
        font-size: 30px;
        top: 30px;
    }

    .home-button {
        right: 40px;
    }

    .home-icon {
        width: 40px;
        height: 40px;
    }
}

/* Extra Large Devices (TV Screens, Ultra-Wide Monitors) */
@media screen and (min-width: 1441px) {
    .brand-logo {
        font-size: 32px;
        left: 50px;
    }

    .page-title {
        font-size: 36px;
        top: 35px;
    }

    .home-button {
        right: 50px;
    }

    .home-icon {
        width: 45px;
        height: 45px;
    }
}

/* Extra Small Devices (Phones) - 375px and below */
@media (max-width: 375px) {
    .modal, .payment-container {
        width: 95%;
        max-width: 300px;
        padding: 8px;
        overflow-y: auto; /* Added overflow scroll */
        max-height: 90vh;
    }

    .modal-content h3, .modal-header h3 {
        font-size: 16px;
    }

    .modal-content p, .modal-content select, .form-group input, .form-group select, #eventDropdown, #eventDropdown option {
        font-size: 12px;
        padding: 4px;
    }

    .modal-buttons button {
        font-size: 10px;
        padding: 6px;
    }

    .form-group {
        margin-bottom: 8px;
    }

    .qr-box img {
        width: 70px;
    }

    .info, .advance, .amount, .utr-section input {
        font-size: 10px;
        padding: 3px 6px;
    }

    .note {
        font-size: 8px;
    }
}

/* Extra Small Devices (Phones) - 376px to 575px */
@media (min-width: 376px) and (max-width: 575px) {
    .modal, .payment-container {
        width: 90%;
        max-width: 350px;
        padding: 10px;
        overflow-y: auto; /* Added overflow scroll */
        max-height: 90vh;
    }

    .modal-content h3, .modal-header h3 {
        font-size: 18px;
    }

    .modal-content p, .modal-content select, .form-group input, .form-group select, #eventDropdown, #eventDropdown option {
        font-size: 14px;
        padding: 6px;
    }

    .modal-buttons button {
        font-size: 12px;
        padding: 8px;
    }

    .form-group {
        margin-bottom: 10px;
    }

    .qr-box img {
        width: 80px;
    }

    .info, .advance, .amount, .utr-section input {
        font-size: 12px;
        padding: 4px 8px;
    }

    .note {
        font-size: 10px;
    }
}

/* Small Devices (Phones) - 576px to 767px */
@media (min-width: 576px) and (max-width: 767px) {
    .modal, .payment-container {
        width: 90%;
        max-width: 400px;
        overflow-y: auto; /* Added overflow scroll */
        max-height: 90vh;
    }

    .modal-content select, .form-group input, .form-group select, #eventDropdown, #eventDropdown option {
        font-size: 14px;
    }

    .modal-buttons button {
        font-size: 14px;
    }

    .qr-box img {
        width: 90px;
    }

    .info, .advance, .amount, .utr-section input {
        font-size: 12px;
    }

    .modal-header h3 {
        font-size: 18px;
    }
}

/* Medium Devices (Tablets) - 768px to 991px */
@media (min-width: 768px) and (max-width: 991px) {
    .modal, .payment-container {
        width: 80%;
        max-width: 500px;
        overflow-y: auto; /* Added overflow scroll */
        max-height: 90vh;
    }

    .modal-content select, .form-group input, .form-group select, #eventDropdown, #eventDropdown option {
        font-size: 16px;
    }

    .modal-buttons button {
        font-size: 14px;
    }

    .qr-box img {
        width: 100px;
    }

    .info, .advance, .amount, .utr-section input {
        font-size: 14px;
    }

    .modal-header h3 {
        font-size: 20px;
    }
}

/* Large Devices (Laptops/Desktops) - 992px to 1199px */
@media (min-width: 992px) and (max-width: 1199px) {
    .modal, .payment-container {
        width: 70%;
        max-width: 600px;
        overflow-y: auto; /* Added overflow scroll */
        max-height: 90vh;
    }

    .modal-content select, .form-group input, .form-group select, #eventDropdown, #eventDropdown option {
        font-size: 16px;
    }

    .modal-buttons button {
        font-size: 16px;
    }

    .qr-box img {
        width: 100px;
    }

    .info, .advance, .amount, .utr-section input {
        font-size: 14px;
    }

    .modal-header h3 {
        font-size: 20px;
    }
}

/* Extra Large Devices (Desktops) - 1200px to 1439px */
@media (min-width: 1200px) and (max-width: 1439px) {
    .modal {
        width: 60%;
        max-width: 700px;
        overflow-y: auto; /* Added overflow scroll */
        max-height: 90vh;
    }
    .payment-container {
        width: 70%;
        max-width: 600px;
        overflow-y: auto; /* Added overflow scroll */
    }
    .modal-content select, .form-group input, .form-group select, #eventDropdown, #eventDropdown option , .utr-section input, .amount, .modal-buttons button{
        font-size: 16px;
    }
    .modal-header h3 {
        font-size: 20px;
    }
}

/* Extra Large Devices (Desktops) - 1440px and above */
@media (min-width: 1440px) {
    .modal {
        width: 50%;
        max-width: 800px;
        overflow-y: auto; /* Added overflow scroll */
        max-height: 90vh;
    }
    .payment-container {
        width: 60%;
        max-width: 700px;
        overflow-y: auto; /* Added overflow scroll */
    }
    .modal-content select, .form-group input, .form-group select, #eventDropdown, #eventDropdown option , .utr-section input, .amount, .modal-buttons button{
        font-size: 18px;
    }
    .modal-header h3 {
        font-size: 22px;
    }
}

/* 1024x600 Specific Adjustments */
@media (width: 1024px) and (height: 600px) {
    .modal, .payment-container {
        width: 85%;
        max-width: 600px;
        padding: 12px;
        overflow-y: auto; /* Added overflow scroll */
        max-height: 90vh;
    }

    .modal-content select, .form-group input, .form-group select, #eventDropdown, #eventDropdown option, .utr-section input, .amount {
        font-size: 15px;
    }

    .modal-buttons button {
        font-size: 13px;
        padding: 7px 10px;
    }

    .qr-box img {
        width: 95px;
    }

    .info, .advance {
        font-size: 13px;
        padding: 5px 9px;
    }

    .modal-header h3 {
        font-size: 19px;
    }
}

