/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 2rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --black-color: hsl(220, 24%, 12%);
  --black-color-light: hsl(220, 24%, 15%);
  --black-color-lighten: hsl(220, 20%, 18%);
  --white-color: #fff;
  --body-color: hsl(220, 100%, 97%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  /*--body-font: "Montserrat", sans-serif; */
  --body-font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --normal-font-size: .938rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-semi-bold: 600;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

/* Container */
.container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Grid container */
.row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
}
.form-row {
    display: flex;
    padding-top: 10px;
    gap: 20px;
    flex-wrap: wrap;
}
.row-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* Default column styling */
.col {
    text-align: center;
    padding: 15px;
    border-radius: 5px;
}

/* Mobile-first: full width */
[class*="col-"] {
    flex: 0 0 100%;
}

/* Responsive columns (12-column system) */
@media (min-width: 768px) {
    .col-md-1 { flex: 0 0 calc(8.33% - 10px); }
    .col-md-2 { flex: 0 0 calc(16.66% - 10px); }
    .col-md-3 { flex: 0 0 calc(25% - 10px); }
    .col-md-4 { flex: 0 0 calc(33.33% - 10px); }
    .col-md-5 { flex: 0 0 calc(41.66% - 10px); }
    .col-md-6 { flex: 0 0 calc(50% - 10px); }
    .col-md-7 { flex: 0 0 calc(58.33% - 10px); }
    .col-md-8 { flex: 0 0 calc(66.66% - 10px); }
    .col-md-9 { flex: 0 0 calc(75% - 10px); }
    .col-md-10 { flex: 0 0 calc(83.33% - 10px); }
    .col-md-11 { flex: 0 0 calc(91.66% - 10px); }
    .col-md-12 { flex: 0 0 calc(100% - 10px); }
}

@media (min-width: 768px) {
  .col-sm-6 {
    width: 50%;
  }
}

@media (min-width: 1024px) {
  .col-md-4 {
    width: 33.33%;
  }
  .col-md-6 {
    width: 50%;
  }
  .col-lg-6 {
    width: 50%;
  }
  .col-lg-12 {
    width: 100%;
  }
}

/* Text Alignment */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}


/*===================== BREAKE ======================*/

@media (min-width: 768px) {
  .col-sm-6 {
    width: 50%;
  }
}

@media (min-width: 1024px) {
  .col-md-4 {
    width: 33.33%;
  }
  .col-md-6 {
    width: 50%;
  }
  .col-lg-6 {
    width: 50%;
  }
  .col-lg-12 {
    width: 100%;
  }
}

/* Text Alignment */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

/* Base Button Style */
.button-group {
  display: flex;
  justify-content: flex-end; /* Aligns button to right */
  margin-top: 15px; /* Add spacing above */
}

.button {
  display: inline-block;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  user-select: none;
}

/* Primary Action */
.button.primary {
  background-color: #007bff;
  color: #fff;
}

/* Success */
.button.success {
  background-color: #28a745;
  color: #fff;
}

/* Warning */
.button.warning {
  background-color: #ff9800;
  color: #fff;
}

/* Failed/Error */
.button.failed {
  background-color: #dc3545;
  color: #fff;
}

/* Alert (non-critical) */
.button.alert {
  background-color: #ffeb3b;
  color: #333;
}

/* Hover Effects */
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* Optional: Active Press Animation */
.button:active {
  transform: translateY(0);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.btn-warning, .btn-success, .btn-danger {
    padding: 6px 10px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    color: white;
    cursor: default;
}
.btn-warning { background-color: orange; }
.btn-success { background-color: green; }
.btn-danger { background-color: red; }

.action-btn i {
    font-size: 20px;
    cursor: pointer;
    transition: 0.3s;
}
.action-btn i:hover {
    transform: scale(1.2);
}




/*=================== MODAL START ================================*/
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  padding: 10px; /* Smaller padding for mobile */
}

.modal-content {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 750px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  position: relative;
  animation: fadeIn 0.3s ease;
  overflow: hidden;
}

@keyframes fadeIn {
  from {opacity: 0; transform: scale(0.9);}
  to {opacity: 1; transform: scale(1);}
}

/* Header with fixed position */
.modal-header {
  position: sticky;
  top: 0;
  background: #3498db;
  color: #fff;
  padding: 12px 16px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 12px 12px 0 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close-btn {
  background: #fff;
  color: #3498db;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  line-height: 26px;
  text-align: center;
  cursor: pointer;
  padding: 0;
  font-size: 22px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.close-btn:hover {
  background: #e0e0e0;
  color: darkred;
}

/* Scrollable body */
.modal-body {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
  max-height: calc(85vh - 60px);
  scrollbar-width: thin;
  scrollbar-color: #3498db #f0f0f0;
}

.modal-body::-webkit-scrollbar {
  width: 8px;
}
.modal-body::-webkit-scrollbar-thumb {
  background-color: #3498db;
  border-radius: 4px;
}

/* Button to open modal */
.open-form-btn {
  padding: 12px 24px;
  font-size: 16px;
  color: #fff;
  background: #4CAF50;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin: 20px;
  transition: background 0.3s ease;
}

.open-form-btn:hover {
  background: #45a049;
}

/*=================== MEDIA QUERIES FOR MOBILE ================================*/
@media (max-width: 480px) {
  .modal-content {
    width: 100%;
    max-height: 90vh;
    border-radius: 8px;
  }

  .modal-header {
    font-size: 16px;
    padding: 10px 12px;
  }

  .modal-body {
    padding: 12px;
  }

  .open-form-btn {
    font-size: 14px;
    padding: 10px 18px;
  }

  .close-btn {
    width: 24px;
    height: 24px;
    font-size: 16px;
    line-height: 22px;
  }
}
/*=================== MODAL END ================================*/



/*================== INPUT TAG STYLE START =========================*/
.form-container {
            background: white;
            padding: 10px;
            border-radius: 8px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        }

        .input-group {
            position: relative;
            display: inline-block;
            width: 100%;
            max-width: 300px;
            margin: 5px;
        }

        .input-group input {
            width: 100%;
            padding: 12px 40px 12px 12px;
            font-size: 16px;
            border: 2px solid #ccc;
            border-radius: 5px;
            outline: none;
            box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            background: white;
        }

        .input-group label {
            position: absolute;
            left: 12px;
            top: 50%;
            transform: translateY(-50%);
            background: white;
            padding: 0 5px;
            font-size: 16px;
            color: #888;
            transition: 0.3s;
            pointer-events: none;
        }

        .input-group input:focus + label,
        .input-group input:not(:placeholder-shown) + label {
            top: 5px;
            font-size: 12px;
            color: #555;
        }
        
        .input-group input::placeholder {
            color: #aaa;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .input-group input:focus::placeholder {
            opacity: 1;
        }

        .input-group .icon {
            position: absolute;
            right: 7px;
            top: 50%;
            transform: translateY(-50%);
            color: #888;
            transition: 0.3s;
            cursor: pointer;
        }
        
        /* Input default state before interaction */
        .input-group input.default {
            border-color: #ccc;
        }

        /* Valid input */
        .input-group input.valid {
            border-color: #0077b6; /* Dark Sky Blue */
        }

        /* Error Styling */
        .input-group input.invalid {
            border-color: red;
        }

        .input-group.error .icon {
            color: red;
            cursor: pointer;
        }

        .error-message {
            color: red;
            font-size: 11px;
            display: none;
            background: white;
            border: 1px solid red;
            padding: 5px;
            position: absolute;
            max-width: 100%;
            right: 25px;
            top: 50%;
            transform: translateY(-50%);
            white-space: nowrap;
            border-radius: 4px;
            box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
        }

        .input-group.error .icon:hover + .error-message {
            display: block;
        }
        
/*
<form id="myForm" method="POST">
    <div class="form-container">

        <div class="input-group">
            <input type="text" id="name" placeholder="Enter your Name" required>
            <label for="name">Name</label>
            <i class="ri-user-line icon"></i>
            <div class="error-message"></div>
        </div>

        <div class="input-group">
            <input type="email" id="email" placeholder="Enter your Email" required>
            <label for="email">Email</label>
            <i class="ri-mail-line icon"></i>
            <div class="error-message"></div>
        </div>

        <div class="input-group">
            <input type="date" id="dob" placeholder="Enter your DOB">
            <label for="dob">Date of Birth</label>
            <i class="ri-calendar-line icon"></i>
            <div class="error-message"></div>
        </div>

        <div class="input-group">
            <input type="text" id="access-id" placeholder="Enter your Access ID" required>
            <label for="access-id">Access ID</label>
            <i class="ri-key-line icon"></i>
            <div class="error-message"></div>
        </div>

        <div class="input-group">
            <input type="password" id="password" placeholder="Enter your Password" required>
            <label for="password">Password</label>
            <i class="ri-eye-line icon" onclick="togglePassword('password')"></i>
            <div class="error-message"></div>
        </div>

        <div class="input-group">
            <input type="password" id="wallet-pin" placeholder="Enter your Wallet PIN" maxlength="8">
            <label for="wallet-pin">Wallet PIN</label>
            <i class="ri-eye-line icon" onclick="togglePassword('wallet-pin')"></i>
            <div class="error-message"></div>
        </div>

        <div class="input-group">
            <input type="text" id="pan" placeholder="Enter your PAN" maxlength="10">
            <label for="pan">PAN</label>
            <i class="ri-id-card-line icon"></i>
            <div class="error-message"></div>
        </div>

        <div class="input-group">
            <input type="text" id="aadhar" placeholder="Enter your Aadhar" maxlength="12">
            <label for="aadhar">Aadhar</label>
            <i class="ri-profile-line icon"></i>
            <div class="error-message"></div>
        </div>

        <button type="submit" id="submit-btn">Submit</button>
    </div>
</form>   */

/*================== INPUT TAG STYLE END =========================*/

/*===================== CUSTOM SELECT ======================*/
/* Custom Select Styles */
.custom-dropdown {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 300px;
    margin: 5px;
}
.selected:hover {
    background: #f8f8f8;
}
.selected {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background: #fff;
    font-size: 14px;
    position: relative;
    cursor: pointer;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}
.selected input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
}
.selected::after {
    content: "▼";
    font-size: 13px;
    color: #555;
    position: absolute;
    right: 10px;
    transition: transform 0.3s ease;
}
.custom-dropdown.open .selected::after {
    transform: rotate(180deg);
}
.clear-selection {
    position: absolute;
    right: 30px;
    cursor: pointer;
    font-size: 11px;
    color: #777;
    display: none;
}
.clear-selection:hover {
    color: red;
}
.dropdown-container {
    position: absolute;
    width: 100%;
    background: white;
    border-radius: 8px;
    border: 1px solid #ccc;
    display: none;
    z-index: 1000;
    overflow: hidden;
}
.dropdown-container input {
    width: 100%;
    padding: 10px;
    border: none;
    border-bottom: 1px solid #ccc;
    font-size: 13px;
}
.options-list {
    max-height: 200px;
    overflow-y: auto;
}
.option-item {
    padding: 6px 12px;
    cursor: pointer;
    font-size: 13px;
}
.option-item:hover,
.option-item.active {
    background: #007bff;
    color: white;
}
select.searchable-select {
    position: absolute;
    visibility: hidden;
    width: 0;
    height: 0;
}

/*
    <select class="searchable-select">
        <option value="">Select an option</option>
        <option value="Apple">Apple</option>
        <option value="Banana">Banana</option>
        <option value="Cherry">Cherry</option>
        <option value="Date">Date</option>
        <option value="Grapes">Grapes</option>
        <option value="Mango">Mango</option>
        <option value="Orange">Orange</option>
    </select>

    <select class="searchable-select">
        <option value="">Select a color</option>
        <option value="Red">Red</option>
        <option value="Blue">Blue</option>
        <option value="Green">Green</option>
        <option value="Yellow">Yellow</option>
        <option value="Black">Black</option>
        <option value="White">White</option>
    </select>
*/
/*======================= CUSTOM SELECT END ======================*/

/*======================== LOGIN HOME START ======================*/
.counting-boxes {
            display: flex;
            gap: 35px;
            flex-wrap: wrap;
        }

        .counting-box {
            background: #ffffff;
            border-radius: 12px;
            margin-top: 10px;
            margin-bottom: 5px;
            padding: 20px;
            width: 235px;
            height: 120px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15); /* Smooth shadow */
            transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
        }
        
        .pointer {
            cursor: pointer;
        }

        .counting-box:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        }
        .count-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .count-icon {
            font-size: 35px;
            color: #3498db;
        }

        .count-number {
            font-size: 28px;
            font-weight: bold;
            color: #2c3e50;
        }

        .count-text {
            font-size: 16px;
            font-weight: 900;
            color: #555;
            text-align: center;
            margin-top: 15px;
        }

        .count-text-inr {
            font-size: 14px;
            font-weight: 900;
            color: #555;
            text-align: left;
            margin-top: 0px;
        }
        
        .count-inr {
            font-size: 20px;
            font-weight: 900;
            color: #555;
            text-align: center;
            margin-top: 15px;
        }
        
        /* Responsive Design */
        @media (max-width: 768px) {
            .counting-boxes {
                flex-direction: column;
                align-items: center;
            }

            .counting-box {
                width: 90%;
                padding-top: 5px;
                max-width: 250px;
            }

            .count-icon, .count-number {
                font-size: 1.5rem;
            }

            .count-text {
                font-size: 0.9rem;
            }
        }

/*======================== LOGIN HOME END ========================*/

/*======================== Toast Container START ========================*/
#toast-container {
    position: fixed;
    bottom: 50px;
    left: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    pointer-events: none; /* Allows clicks to pass through */
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 10px;
    margin-top: 12px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    min-width: 280px;
    max-width: 350px;
    font-weight: 500;
    font-size: 14px;
    background-color: #f9f9f9;
    border-left: 5px solid gray;
    color: #333;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    pointer-events: auto; /* Enable click if needed */
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.success {
    background-color: #e6ffed;
    border-left-color: #28a745;
    color: #155724;
}

.toast.error {
    background-color: #ffeaea;
    border-left-color: #dc3545;
    color: #721c24;
}

.toast.warning {
    background-color: #fff8e5;
    border-left-color: #ffc107;
    color: #856404;
}

.toast.info {
    background-color: #e8f4fd;
    border-left-color: #17a2b8;
    color: #0c5460;
}

.toast i {
    font-size: 20px;
    flex-shrink: 0;
}
/*======================== Toast Container END ========================*/

