﻿/* styles.css (Global Styles) */
/*body {
    font-family: 'Arial', sans-serif;
    color: #333;*/
/* Add other global styles */
/*}*/
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    overflow-x: hidden;
}

.main-container {
    min-height: 100vh;
    width: 100%;
    background-image: url('your-background.jpg');
    background-size: cover;
    background-repeat: no-repeat;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.main-container {
    min-height: 100vh; /* Full viewport height */
    background-color: #f5f5f5; /* Fallback background color */
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.btn-edit-delete {
    display: inline-block;
    margin-right: 5px; /* Adjust margin as needed */
    padding: 0; /* Remove default padding */
    background: none;
    border: none;
    cursor: pointer;
    color: #000; /* Change color as needed */
}

.loader {
    border: 16px solid #f3f3f3; /* Light grey */
    border-top: 16px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
    position: fixed;
    top: 50%;
    left: 50%;
    margin-top: -60px; /* Half of the height */
    margin-left: -60px; /* Half of the width */
    z-index: 9999; /* Ensure it's on top of other elements */
    display: none; /* Initially hidden */
}


/* CSS for the loader animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.error-message {
    color: red;
    font-size: 12px;
}

#datatable-buttons tbody tr.color_0 {
    background-color: greenyellow; /* Set background color for rows with the color_1 class */
}

#datatable-buttons tbody tr.color_1 even {
    background-color: orange !important; /* Set background color for rows with the color_1 class */
}


/* Add more color classes
/* Responsive Styles using Media Queries */
@media (max-width: 767px) {
    .container {
        /* max-width: 100%;*/
        padding: 0 15px; /* Add some padding to the container for smaller screens */
    }

    .card {
        border-radius: 0; /* Optional: Remove card border radius for a cleaner look on small screens */
    }

    #qrCodeModal .modal-dialog {
        max-width: 100%;
    }

    #qrCodeModal .modal-body {
        max-height: calc(100vh - 200px); /* Adjust as needed */
        overflow-y: auto;
        padding: 15px; /* Adjust as needed */
    }

    #qrCodeModal .modal-footer {
        justify-content: center;
    }

    /* Add more styles as needed for specific elements */

    #datatable-buttons .btn {
        display: block;
        margin-bottom: 5px; /* Adjust as needed */
        width: 100%;
    }

    #datatable .btn {
        display: block;
        margin-bottom: 5px; /* Adjust as needed */
        width: 100%;
    }

    /* Custom CSS for table header and data */
    .custom-table th {
        background-color: #007bff; /* Change header background color */
        color: #fff; /* Change header text color */
    }

    .custom-table tbody td {
        background-color: #f0f0f0; /* Change data background color */
        color: #333; /* Change data text color */
    }

    .batch-info-label {
        width: 100%; /* Adjust label width to fit smaller screens */
        float: none; /* Remove float for better layout */
        display: block; /* Change to block for stacking vertically */
        text-align: left; /* Align label text to left */
    }

    .batch-info-value {
        width: 100%; /* Adjust value width to fit smaller screens */
        float: none; /* Remove float for better layout */
        display: block; /* Change to block for stacking vertically */
        margin-left: 0; /* Remove left margin */
        text-align: left; /* Align value text to left */
    }

    .icon-container span {
        display: inline; /* Show text */
    }

    .icon-container span {
        display: none; /* Hide text */
    }

    .navbar-brand-box .logo-sm img {
        width: 150px;
        height: 50px;
    }

    .navbar-brand-box.collapsed .logo-sm img {
        width: 50px;
        height: 40px;
    }

    #reviewModal .modal-body .row {
        flex-direction: column;
    }
    .swal2-popup {
        width: 75% !important; /* Adjust width for smaller screens */
    }
    input[type="password"]::-ms-reveal,
    input[type="password"]::-ms-clear {
        display: none;
        width: 0;
        height: 0;
        appearance: none;
    }
    .extra-text {
        display: none;
    }

    #projectImage {
        width: 400px; /* Fixed width */
        height: 300px; /* Fixed height */
        object-fit: contain; /* Keeps aspect ratio while fitting inside the box */
        border: 1px solid #ddd; /* Optional border */
    }
}
