﻿@import url('https://fonts.googleapis.com/css2?family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap');



html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    font-family: 'PT Sans', sans-serif;
    font-weight: 400;
    /*background-image: url("/images/just-one-app.png");*/
    background-color: #fff7e4;
    accent-color: rgb(255, 28, 28);
    /*background-repeat: round;
    background-size: 100px;*/
    /* height: 100vh;*/
    min-height: 100vh; /* Ensures the body takes full viewport height */
    justify-content: center; /* Center horizontally */
    align-items: flex-start; /*  Start from the top --flex-start */ /* Center vertically --center */
    overflow-x: clip; /*Prevent horizontal scrolling */
    overflow-y: auto; /* Ensure vertical scrolling is enabled if needed */
    display: flex;
    flex-direction: row;
    flex-grow: 1;
}

.center-div {
    display: flex; /* Use flexbox layout */
    justify-content: center; /* Horizontally center the contents */
    align-items: center; /* Vertically center the contents */
   /* height: 100vh;  Make the div take full height of the viewport */
}

.dash-div {
    /* display: flex; Use flexbox layout */
   align-items: center;  /* Vertically center the contents */
    /* height: 100vh;  Make the div take full height of the viewport */
    width: 100%;
    padding: 6px;
    margin-top: 4px;
  /*  overflow: auto;  Hide any overflow */
    /* font-size: 14px;*/
}


.footer {
    display: inline-block;
    width: 100%;
    /*background: #fdbd30;*/
    min-height: 2vw;
    justify-content: space-between;
    padding: 20px;
}

.header {
    /*    display: inline-block;
    width: 100%;
    background: #a20a3a;
    min-height: 4.5vw;*/
    background: #a20a3a;
    display: flex;
    justify-content: space-between; /* Aligns items to the left and right */
    align-items: center; /* Vertically centers items */
    padding: 20px;
    position: relative;
}

.side-container {
    background: #ffffff;
    padding: 5px;
    box-shadow: 0 4px 8px rgba(212, 21, 21, 0.1015625);
    border-radius: 8px;
    width: calc(100% - 10px); /* Take full available width */
    /*max-width: 950px;  Optional: Restrict the max-width */
    min-width: 200px; /* Optional: Ensure form doesn't shrink too much */
    max-height: 850px;
    display: contents;
    align-items: center; /* Center the contents horizontally */
    overflow: auto; /* Ensure vertical scrolling is enabled if needed */
    /* margin-top: 20px;*/
}

.login-container {
    /*background: #ffffff;*/
    /*background: #fdbd30;*/
    background: #ffffff;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(212, 21, 21, 0.1015625);
    border-radius: 8px;
    width: 100%; /* Take full available width */
    max-width: 400px; /* Optional: Restrict the max-width */
    max-height: 850px;
    min-height: 650px;
    /* min-width: 300px;  Optional: Ensure form doesn't shrink too much */
    display: flex;
    flex-direction: column;
    align-items: center; /* Center the contents horizontally */
    overflow: auto; /* Hide any content that goes beyond the container */
    /* margin-top: 20px;*/
    flex-grow: 1; /* Allows the container to grow and fill available space */
}

.dash-container {
    background: #ffffff;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(212, 21, 21, 0.1015625);
    border-radius: 8px;
    width: 100%; /* Take full available width */
    max-height: 850px;
    min-height: 650px;
    overflow:auto;
}

.error-container {
    padding: 20px;
    display: flex;
    justify-content: center; /* Horizontal centering of inner div */
    align-items: center; /* Vertical centering of inner div */
    height: 60vh; /* Full viewport height to enable vertical centering */
}

.login-image {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
}

    .login-image img {
        width: 100%; /* Make the image responsive */
        height: auto; /* Maintain the aspect ratio */
       max-width: 400px; /*  Optional: Limit max width of the image */
    }

.logo {
    width: 100%;
    text-align: left;
    margin-bottom: 10px;
}

    .logo img {
        padding-left:5px;
        margin:auto;
        width: 95%; /* Make the image responsive */
        height: auto; /* Maintain the aspect ratio */
        max-width: 350px; /*  Optional: Limit max width of the image */
    }


.whatsapp-link {
    display: flex;
    align-items: center;
    background-color: #50cc7d; /* WhatsApp green */
    color: white;
    font-size: 16px;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

    .whatsapp-link:hover {
        background-color: #128C7E; /* Darker green on hover */
        transform: scale(1.05); /* Slight zoom effect on hover */
    }

.whatsapp-icon {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

.whatsapp-link:active {
    transform: scale(0.98); /* Slight shrink effect when clicked */
}
.login-form {
    width: auto; /* Let the width adjust based on content */
    padding: 0;
    margin: 0;
    text-align: center;
    gap: 15px; /* Adds spacing between elements */
}

    .login-form h3 {
        margin-bottom: 10px;
    }
    .login-form h6 {
        margin-bottom: 5px;
    }

.left {
    text-align: left;
}

.form-group {
    margin-bottom: 10px;
}

    .form-group label {
        display: block;
        margin-bottom: 4px;
        font-size: 14px;
    }

.form-control {
    width: 100%;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-top: 4px;
    white-space: nowrap; /* Prevent wrapping of text */
    overflow: hidden; /* Hide any overflow */
    text-overflow: clip; /* Optionally, add ellipsis for overflow text */
    /* font-size: 14px;*/
    font-size: 120%;
    text-align: center;
}

    .form-control:focus {
        border-color: #a20a3a;
        outline: none;
        box-shadow: rgba(239, 139, 117, 0.6) 0px 8px 29px 0px; /* Adds a soft glow effect */
    }

.f-label {
    width: 100%;
    padding: 0px;
    font-size: 14px;
    margin-top: auto;
}

.f-label label{
    font-size: 14px;
    margin: auto;
}

.btn-custom {
    padding: 10px 25px;
    font-size: 14px;
    border: 0;
    border-radius: 5px;
    font-weight: 700;
    min-width: 150px;
    text-align: center;
    transition: all 0.35s ease;
    background: #a20a3a;
    color: #fff;
}

    .btn-custom:enabled:hover{
        transform: scale(1.1);
        box-shadow: rgba(242, 238, 237, 0.6015625) 0px 8px 29px 0px;
        background: #a20a3a;
        color: #fff;
    }


.table-container {
    width: 100%;
    overflow-x: auto; /* Enables horizontal scrolling for small screens */
    margin-top: 20px;
    display: flex;
    justify-content: center; /* Centers the table */
}

table {
    width: auto;
    border-collapse: collapse;
    margin-top: 10px;
    border:none;
}

table, th, td {
    border: 1px solid #ccc;
}

table, tr {
    border: none;
}

th, td {
    padding: 8px;
    text-align: center; /* Left-aligns the content inside table cells */
  /*  font-size: 14px;*/
}

th {
    background-color: #f2f2f2;
    font-weight: bold;
}

/* Style for the collapsible button */
.collapsible {
    background-color: #777;
    color: white;
    cursor: pointer;
    padding: 10px;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    font-size: 15px;
    margin-bottom: 5px;
}

/* Style for the collapsible content */
.collapse-content {
    padding: 0 18px;
    display: none;
    overflow: hidden;
    background-color: #f1f1f1;
}

/* Optional: Style for each item */
.field-item {
    margin: 10px 0;
}

.loader-div {
    display: none;
    position: fixed;
    margin: 0px;
    padding: 0px;
    right: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 30001;
    opacity: 0.5;
}

.loader-img {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
}

@media (max-width: 768px) {
    table {
       /* font-size: 12px; /* Reduces the font size on smaller screens */
        font-size: 120%;
    }

    th, td {
        padding: 6px;
    }

}


@media (max-width: 480px) {
    .login-container {
        width: 100vw;
        padding: 5px;
        overflow:auto;
    }
    .dash-container {
        width: 100vw;
        padding: 5px;
        overflow: auto;
    }
    .error-container {
        width: 100vw;
        height:auto;
        padding: 5px;
        overflow: auto;
    }
    .side-container {
        width: 100vw;
        padding: 5px;
        overflow: auto;
    }
    .form-control {
       /* font-size: 12px;*/
        font-size: 100%;
    }

    .btn-custom {
        /* font-size: 14px;*/
        font-size: 100%;
    }
    .login-image img {
        max-width: 100%; /* Allow image to take full width on smaller screens */
    }
    .logo img {
        max-width: 90%; /* Allow image to take full width on smaller screens */
        padding-left: 0px;
    }
    .whatsapp-link {
        font-size: 10px;
        padding: 8px 8px;
        border-radius: 50px;
    }

    .whatsapp-icon {
        width: 25px;
        height: 25px;
        margin-right: 2px;
    }

}
