/* General Body and Container Styling */
body {
    font-family: 'Roboto', sans-serif; /* Using Roboto for a professional feel */
    margin: 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); /* Softer gradient */
    color: #495057; /* Slightly softer text color */
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align items to the top */
    min-height: 100vh;
    padding: 10px; /* Reduced padding for mobile view */
    box-sizing: border-box;
}

.container {
    background-color: #ffffff;
    padding: 20px; /* Reduced padding for mobile view */
    border-radius: 12px; /* Slightly less rounded */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1); /* More pronounced shadow */
    width: 100%;
    max-width: 900px;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.6s ease-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1, h2, h3 {
    color: #0056b3; /* Darker shade of blue */
    text-align: center;
    margin-bottom: 20px; /* Adjusted margin */
    font-weight: 500; /* Medium font weight */
    font-size: 1.5em; /* Adjusted font size for mobile */
}

/* Form Elements Styling */
.form-group {
    margin-bottom: 15px; /* Adjusted margin */
}

label {
    display: block;
    margin-bottom: 5px; /* Adjusted margin */
    font-weight: 500; /* Medium font weight */
    color: #343a40; /* Darker label color */
    font-size: 0.9em; /* Adjusted font size */
}

input[type="text"],
input[type="password"],
input[type="number"],
select {
    width: 100%;
    padding: 10px 12px; /* Adjusted padding */
    border: 1px solid #ced4da;
    border-radius: 6px; /* Slightly less rounded */
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-size: 0.9rem; /* Adjusted font size */
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.3); /* More prominent focus shadow */
}

/* Button Styling */
button {
    display: inline-flex; /* Use flex for centering content */
    align-items: center;
    justify-content: center;
    background-color: #007bff;
    color: white;
    padding: 10px 20px; /* Adjusted padding */
    border: none;
    border-radius: 6px; /* Slightly less rounded */
    cursor: pointer;
    font-size: 0.9rem; /* Adjusted font size */
    transition: background-color 0.3s ease, transform 0.1s ease, box-shadow 0.3s ease;
    font-weight: 500;
    text-transform: uppercase; /* Uppercase text */
    letter-spacing: 0.5px;
    width: 100%; /* Full width buttons on mobile */
    margin-bottom: 10px; /* Space between stacked buttons */
}

button i {
    margin-right: 8px; /* Adjusted space */
}

button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3); /* Add shadow on hover */
}

button:active {
    transform: translateY(0);
    box-shadow: none;
}

.btn-danger {
    background-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
}

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

.btn-success:hover {
    background-color: #218838;
}

.btn-secondary {
    background-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* Card Styling */
.card {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px; /* Adjusted padding */
    margin-bottom: 20px; /* Adjusted margin */
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.08); /* Softer shadow */
    border: 1px solid #e9ecef; /* Subtle border */
}

.card-header {
    font-weight: 600; /* Slightly bolder */
    margin-bottom: 15px; /* Adjusted margin */
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 10px; /* Adjusted padding */
    color: #0056b3; /* Darker shade of blue */
    font-size: 1.1em; /* Adjusted font size */
}

.hidden {
    display: none;
}

/* Alert Banner Styling */
.alert-banner {
    position: fixed;
    top: 10px; /* Adjusted position for mobile */
    right: 10px; /* Adjusted position for mobile */
    left: 10px; /* Full width on mobile */
    padding: 10px 15px; /* Adjusted padding */
    border-radius: 8px;
    color: white;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1000;
    min-width: auto; /* Remove min-width */
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.alert-banner.show {
    opacity: 1;
}

/* Professional Alert Colors */
.alert-success {
    background-color: #28a745; /* Keep success green */
    color: white;
}

.alert-danger {
    background-color: #dc3545; /* Keep danger red */
    color: white;
}

.alert-warning {
    background-color: #ffc107; /* Keep warning orange */
    color: #343a40; /* Dark text for contrast */
}
 .alert-info { /* Style for info banners */
    background-color: #17a2b8; /* Info blue */
    color: white;
 }


/* Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px; /* Adjusted margin */
    background-color: #ffffff; /* White background for table */
    border-radius: 8px;
    overflow: hidden; /* Hide overflow for rounded corners */
    font-size: 0.9em; /* Adjusted font size */
}

th, td {
    padding: 10px 12px; /* Adjusted padding */
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

th {
    background-color: #e9ecef;
    font-weight: 600; /* Slightly bolder */
    color: #495057;
    text-transform: uppercase; /* Uppercase headers */
    font-size: 0.8em; /* Adjusted font size */
}

tr:hover {
    background-color: #f1f1f1;
}

/* --- Employee Panel Styling --- */
#employee-panel {
    /* Add your background styles here */
    background-image: url('background.JPEG'); /* Replace with your image URL or path */
    background-size: cover; /* Cover the entire panel */
    background-position: center; /* Center the background image */
    background-repeat: no-repeat; /* Do not repeat the image */
}


/* Employee Nav (Bottom Bar) */
.employee-nav {
    display: flex;
    justify-content: space-around; /* Distribute space evenly */
    align-items: center; /* Center items vertically */
    position: fixed; /* Fixed position at the bottom */
    bottom: 0; /* Align to the bottom edge */
    left: 0;
    width: 100%; /* Full width */
    background-color: #ffffff; /* White background */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1); /* Shadow at the top */
    padding: 10px 0; /* Padding top and bottom */
    z-index: 999; /* Ensure it's above other content */
    gap: 0; /* Remove gap, use padding within buttons */
    flex-wrap: nowrap; /* Prevent wrapping */
}

.employee-nav button {
    background-color: transparent; /* Transparent background for nav buttons */
    color: #495057; /* Darker text */
    padding: 10px 5px; /* Adjusted padding for bottom nav */
    border-radius: 0; /* No border radius */
    font-weight: 500;
    text-transform: none; /* No uppercase */
    letter-spacing: normal;
    transition: color 0.2s ease; /* Transition color on hover */
    width: 100%; /* Distribute width evenly */
    margin-bottom: 0; /* Remove bottom margin */
    flex-direction: column; /* Stack icon and text vertically */
    font-size: 0.8em; /* Smaller font size for nav text */
}

.employee-nav button i {
    margin-right: 0; /* Remove right margin for icon */
    margin-bottom: 5px; /* Space between icon and text */
    font-size: 1.2em; /* Adjusted icon size */
}


.employee-nav button:hover {
    background-color: transparent; /* Keep background transparent on hover */
    color: #007bff; /* Change color on hover */
    transform: none; /* No transform */
    box-shadow: none; /* No shadow */
}

.employee-nav button.active {
    background-color: transparent; /* Keep background transparent */
    color: #007bff; /* Active button color */
    border-bottom: 2px solid #007bff; /* Indicator line below active button */
}

/* Floating Support Button */
.support-floating-button {
    position: fixed; /* Fixed position */
    bottom: 80px; /* Position above the bottom nav */
    right: 20px; /* Position from the right */
    background-color: #17a2b8; /* Info blue color */
    color: white;
    border-radius: 50%; /* Make it round */
    width: 50px; /* Set width and height for round shape */
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em; /* Adjust icon size */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Add shadow */
    z-index: 1000; /* Ensure it's above content but below overlay */
    padding: 0; /* Remove default padding */
    margin-bottom: 0; /* Remove bottom margin */
}

.support-floating-button:hover {
    background-color: #138496; /* Darker blue on hover */
    transform: scale(1.1); /* Slightly enlarge on hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.support-floating-button i {
    margin-right: 0; /* Remove margin */
}


/* Add padding to the bottom of the container to prevent content from being hidden by the fixed nav */
.container {
    padding-bottom: 70px; /* Adjust based on the height of the fixed nav */
}


.top-wallet-actions {
    display: flex;
    justify-content: space-around; /* Distribute space evenly */
    margin-bottom: 20px; /* Adjusted margin */
    gap: 15px; /* Adjusted space between cards */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.action-card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 15px; /* Adjusted padding */
    text-align: center;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex: 1; /* Allow cards to grow */
    min-width: 120px; /* Adjusted minimum width for cards */
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.action-card i {
    font-size: 1.8em; /* Adjusted icon size */
    margin-bottom: 8px; /* Adjusted space */
    color: #007bff; /* Icon color */
}

.action-card span {
    font-weight: 600;
    color: #343a40;
    font-size: 0.9em; /* Adjusted font size */
}

.balance-summary {
    display: grid; /* Use grid for layout */
    grid-template-columns: 1fr; /* Stack columns on mobile */
    gap: 15px; /* Adjusted space between sections */
    align-items: center; /* Vertically align content */
    padding: 20px; /* Adjusted padding */
    position: relative; /* Needed for absolute positioning of code */
}

.balance-header {
    position: static; /* Remove absolute positioning on mobile */
    text-align: right;
    margin-bottom: 10px;
    font-size: 0.9em;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Align code to the right */
}

.copy-icon {
    margin-left: 8px;
    cursor: pointer;
    color: #007bff;
    transition: color 0.2s ease;
}

.copy-icon:hover {
    color: #0056b3;
}


.balance-info,
.total-info {
    display: flex;
    flex-direction: column;
}

.balance-info span,
.total-info span {
    font-size: 1em; /* Adjusted font size */
    color: #5a6268;
    margin-bottom: 5px;
}

.balance-summary .amount {
    font-size: 1.8em; /* Adjusted amount size */
    font-weight: 700; /* Bolder amount */
    color: #28a745; /* Green for balance */
}

.total-info .amount {
     color: #0056b3; /* Blue for total */
}

.company-upi-info {
    grid-column: 1 / -1; /* Span across all columns in the grid */
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef; /* Separator line */
    font-size: 0.9em; /* Adjusted font size */
    color: #343a40;
}

.company-upi-info i {
    margin-right: 8px;
    color: #007bff;
}


.daily-stats {
    display: grid;
    grid-template-columns: 1fr; /* Stack stats on mobile */
    gap: 15px; /* Adjusted gap */
    padding: 20px; /* Adjusted padding */
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-item span {
    font-size: 0.8em; /* Adjusted font size */
    color: #6c757d;
    margin-bottom: 3px; /* Adjusted margin */
}

.stat-item .stat-amount {
    font-size: 1.1em; /* Adjusted font size */
    font-weight: 600;
    color: #495057;
}

/* Specific styling for Freeze Status */
#employee-freeze-status {
    font-weight: 700;
}

/* --- Overlay/Modal Styling for Support Info --- */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent black background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Above other content */
}

.overlay-content {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 90%; /* Max width for responsiveness */
    width: 400px; /* Preferred width */
}

.overlay-content h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #0056b3;
}

.overlay-content p {
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #343a40;
}

.overlay-content i {
    margin-right: 10px;
    color: #007bff;
}

.overlay-content button {
    margin-top: 20px;
    width: auto; /* Auto width for close button */
    padding: 10px 20px;
}


/* Responsive Adjustments */
@media (min-width: 768px) {
    /* Styles for larger screens (tablet and desktop) */
    body {
        padding: 30px 20px; /* Restore padding */
    }

    .container {
        padding: 40px; /* Restore padding */
         /* Remove bottom padding on larger screens */
        padding-bottom: 40px;
    }

    h1, h2, h3 {
        font-size: 2em; /* Restore font size */
        margin-bottom: 30px; /* Restore margin */
    }

    .form-group {
        margin-bottom: 25px; /* Restore margin */
    }

    label {
        margin-bottom: 8px; /* Restore margin */
        font-size: 1em; /* Restore font size */
    }

    input[type="text"],
    input[type="password"],
    input[type="number"],
    select {
        padding: 12px 15px; /* Restore padding */
        font-size: 1rem; /* Restore font size */
    }

    button {
        padding: 12px 25px; /* Restore padding */
        font-size: 1rem; /* Restore font size */
        width: auto; /* Restore auto width */
        margin-bottom: 0; /* Remove bottom margin */
    }

     .employee-nav {
         justify-content: center; /* Center nav buttons */
         gap: 15px; /* Restore gap */
         position: static; /* Remove fixed positioning */
         bottom: auto;
         left: auto;
         width: auto;
         background-color: transparent; /* Remove background */
         box-shadow: none; /* Remove shadow */
         padding: 0; /* Remove padding */
         margin-bottom: 30px; /* Restore margin */
         flex-direction: row; /* Restore row direction */
     }

     .employee-nav button {
         background-color: #e9ecef; /* Restore background */
         color: #495057; /* Restore color */
         padding: 10px 20px; /* Restore padding */
         border-radius: 5px; /* Restore border radius */
         font-size: 0.9rem; /* Restore font size */
         flex-direction: row; /* Restore row direction */
         margin-bottom: 0; /* Remove bottom margin */
     }

    .employee-nav button i {
        margin-right: 10px; /* Restore margin */
        margin-bottom: 0; /* Remove bottom margin */
        font-size: 1em; /* Restore icon size */
    }

    .employee-nav button.active {
        background-color: #007bff; /* Restore background */
        color: white; /* Restore color */
        border-bottom: none; /* Remove border */
    }

    /* Floating Support Button - Hide on larger screens if not needed */
    .support-floating-button {
        position: static; /* Remove fixed positioning */
        bottom: auto;
        right: auto;
        margin-top: 20px; /* Add some space below content */
        width: auto; /* Allow button to size based on content */
        border-radius: 6px; /* Restore normal button shape */
        font-size: 0.9rem; /* Restore font size */
        padding: 10px 20px; /* Restore padding */
        box-shadow: none; /* Remove shadow */
    }

     .support-floating-button i {
         margin-right: 8px; /* Restore margin */
     }

     .support-floating-button:hover {
         transform: none; /* Remove transform */
         box-shadow: none; /* Remove shadow */
     }


    .top-wallet-actions {
        margin-bottom: 25px; /* Restore margin */
        gap: 20px; /* Restore gap */
    }

    .action-card {
        padding: 20px; /* Restore padding */
        min-width: 150px; /* Restore min-width */
    }

    .action-card i {
        font-size: 2em; /* Restore icon size */
        margin-bottom: 10px; /* Restore margin */
    }

    .action-card span {
        font-size: 1em; /* Restore font size */
    }

    .balance-summary {
        grid-template-columns: 1fr 1fr; /* Restore two columns */
        gap: 20px; /* Restore gap */
        padding: 30px; /* Restore padding */
    }

    .balance-header {
        position: absolute; /* Restore absolute positioning */
        top: 15px;
        right: 20px;
        font-size: 0.9em;
        justify-content: flex-start; /* Align code to the left within header */
    }


    .balance-info span,
    .total-info span {
        font-size: 1.1em; /* Restore font size */
    }

    .balance-summary .amount {
        font-size: 2em; /* Restore amount size */
    }

    .company-upi-info {
         font-size: 0.95em; /* Restore font size */
    }

    .daily-stats {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Restore responsive grid */
        gap: 20px; /* Restore gap */
        padding: 25px; /* Restore padding */
    }

    .stat-item span {
        font-size: 0.9em; /* Restore font size */
        margin-bottom: 5px; /* Restore margin */
    }

    .stat-item .stat-amount {
        font-size: 1.2em; /* Restore font size */
    }

    table {
        margin-top: 20px; /* Restore margin */
        font-size: 1em; /* Restore font size */
    }

    th, td {
        padding: 12px 15px; /* Restore padding */
    }

    th {
        font-size: 0.9em; /* Restore font size */
    }

    /* Adjust overlay content width for larger screens */
    .overlay-content {
        width: 400px;
    }
}


/* Loading Spinner Styling */
.loading-spinner {
    display: none; /* Hidden by default */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 8px solid #f3f3f3; /* Light grey */
    border-top: 8px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    z-index: 1001; /* Above alert banner */
}

.loading-spinner.show {
    display: block;
}

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