﻿/*
input:focus  
{   
    outline: 3px solid #3b5998;
}
*/

@page
{
    size: A4;
    margin: 5mm 5mm 5mm 5mm; /*margin: 27mm 16mm 27mm 16mm;  */
}

@media print
{
    html, body
    {
        width: 210mm;
        height: 282mm;
        font-size: 11px;
        background: #fff;
        overflow: visible;
    }



    body
    {
        /* if you want to enable graphics */
        
        -webkit-print-color-adjust: exact; /* if you want to enable graphics */
        color-adjust: exact !important; /* if you want to enable graphics */
        print-color-adjust: exact !important;
    }    
    
    th, td
    { 
        /* background-color: #fff !important;
        color: #000 !important;
        border: 1px solid #000 !important;   */ 
        font-size: 10px !important;
    }

    .pagebreak  
    {
        page-break-before: always; 
    } /* page-break-after works, as well */

    .noPrint
    {
        display: none !important;
        visibility: hidden;
    }
    
}


body
{
    margin: 0;
    padding: 0;
    background: #fff;
    font-family: 'Helvetica Neue' , 'Helvetica' , Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

  header
    {
        background-color: #fff;
        padding: 10px;
        display: flex;
        align-items: center;
        justify-content: center; /* Centers the content horizontally */
        border-bottom: 1px solid #ddd;
    }
    .header-content
    {
        display: flex;
        align-items: center;
    }
    .logo img
    {
        max-height: 120px; /* Adjust logo size */
        margin-right: 10px; /* Space between logo and text */
    }
    .header-text
    {
        text-align: center;
    }
    .header-line1
    {
        font-size: 24px;
        font-weight: bold;
        margin: 5px 0;
    }
    .header-line2
    {
        font-size: 16px;
        margin: 5px 0;
        color: #555;
        font-weight: bold;
    }
    .header-line3
    {
        font-size: 15px;
        margin: 5px 0;
        color: #555;
        font-weight: bold;
    } 
    
    .container {
            text-align: right;
            padding: 10px;
        }
        .right-btn {
            margin-left: 10px; /* Space between buttons */
            padding: 10px 20px;
            background-color: #4CAF50;
            color: white;
            border: none;
            cursor: pointer;
            font-size: 16px;
        }
    
    
li { 
  margin-bottom: 10px;
}

table, td, th
{
    border: 1px solid #222;
    text-align: left;
}

table
{
    border-collapse: collapse;
    width: 100%;
    table-layout: fixed;
    page-break-inside: auto;
}

th
{
    /* background-color: #1a6194; */
    background-color: #1775F1;
    color: #fff;
    
    /* background-color: #e3e3e3;
    color: #222; */
    text-align: center;
    font-size: 15px;
    font-weight: 700;
}
th, td
{
    padding: 15px;
    vertical-align: top;    
    word-wrap: break-word;
}

td
{    
    font-size: 15px;
    font-weight: bold;
}

.NoTextSelect
{
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Navbar styling */
.navbar
{
    background-color: #3b5998;
    color: white;
    height: 3rem; /* Set a specific height */
    display: flex;
    align-items: center;
    padding: 0 20px; /* Only left and right padding */
    position: fixed;
    top: 0;
    width: 100%;
    text-align: left; /* Align text to the left */
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Small shadow for better visibility */
}

.navbar h2
{
    margin: 0;
    font-size: 24px; /* Adjusted font size for better alignment */
}

/* Main content styling */
.content
{
    margin-top: 1rem;
    /*margin-top: 4rem; */ /* Adjusted margin to match the new navbar height */
    padding: 0px 20px;
}

h1, h2, h3, h4, h5
{
    text-align: center;
}

/* Bold styling for the first two lines */
.bold-text
{
    font-weight: bold;
    margin: 5px;
}

/* Normal styling for the other lines */
.normal-text
{
    font-weight: normal;
    margin: 5px;
}

.result-box
{
    max-width: 100%;
    margin: 20px auto; /* Center the box horizontally */
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.details-box
{
    max-width: 400px; /* Reduced max-width for better size */
    margin: 10px auto; /* Center the box horizontally */
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    font-size: 20px; /* Increased font size */
}

.details-box h2
{
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px; /* Adjusted font size */
}

.details-box label
{
    display: block; 
    margin-bottom: 5px;
    font-size: 16px; /* Increased label font size */
    font-weight: bold;
}

/* Adjusted width for all input fields to be full width */
.details-box input, .details-box select
{
    width: calc(100% - 30px); /* Set to full width minus padding */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 20px; /* Increased input font size */
    text-align: center;
}

.details-box textarea
{
    resize: vertical;
    height: 100px;
}

.captcha-box
{
    display: flex; /* Change to flex for side-by-side alignment */
    align-items: center; /* Center the items vertically */
    margin-bottom: 20px; /* Space below captcha box */
}

.captcha-image
{
    width: 250px; /* Reduced width for better size */
    height: 50px;
    background-color: #f0f0f0; /* Placeholder for captcha */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: 1px solid #ddd;
    margin-right: 10px; /* Space between captcha image and button */
    background-image: url('captcha-image-url'); /* Replace with your captcha image URL */
    background-size: cover; /* Cover the area */
    background-position: center; /* Center the image */
}

#error-list {
  margin-top: 20px;
  color: #222;
  background-color: #f8d7da;
  border: 1px solid #f5c2c7;
  padding: 10px;
  /* display: none; */ /* Hidden by default */
}

#error_list {
  margin-top: 20px;
  color: #222;
  background-color: #f8d7da;
  border: 1px solid #f5c2c7;
  padding: 10px;
  /* display: none; */ /* Hidden by default */
}

.printer-container {
    text-align: center;
    padding: 10px;
    margin-top: 20px;
}

.back-btn
{
    /*background-color: #222;*/
    margin-left: 10px;
    background-color: white;
    border: 2px solid #607D8B;
    color: black;
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
}

.back-btn:hover
{
    /*background-color: white;*/
    background-color: #607D8B;
    color: #fff;
    border: 2px solid #607D8B;
}


.print-btn
{
    /*background-color: #04AA6D;*/
    margin-left: 10px;
    background-color: white;
    border: 2px solid #04AA6D;
    color: black;
    padding: 10px 15px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    text-align: center;
}

.print-btn:hover
{
    /*background-color: white;*/
    background-color: #04AA6D;
    color: white;
    border: 2px solid #04AA6D;
}

/* Refresh Button Styling */
.refresh-btn
{
    background-color: #3b5998;
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 16px; /* Increased button font size */
    cursor: pointer;
    border-radius: 5px;
    text-align: center;
}

.refresh-btn:hover
{
    background-color: #324b80;
}

/* Submit Button Styling */
.submit-btn
{
    background-color: #3b5998;    
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 20px; /* Increased button font size */
    cursor: pointer;
    border-radius: 5px;
    width: 100%; /* Full width for the submit button */
    text-align: center;
}

.submit-btn:hover
{
    background-color: #324b80;
}

/* Necessary field indication */
.necessary
{
    color: red;
    margin-left: 5px; /* Space between label and indicator */
    font-size: 18px; /* Size of necessary indicator */
}

/* Line styling */
.line
{
    margin: 10px 0; /* Spacing around the line */
    border: 0;
    border-top: 1px solid #ddd; /* Line style */
}

/* Center text styling */
.goto-home
{
    text-align: center;
    font-size: 18px; /* Size of the text */
    margin-bottom: 10px; /* Spacing around the text */
}

.goto-home a
{
    color: #3b5998; /* Link color */
    text-decoration: none; /* Remove underline */
    font-weight: bold; /* Make text bold */
}

.goto-home a:hover
{
    text-decoration: underline; /* Underline on hover */
}

/*        
*:focus {
    box-shadow: none !important;
    border: 2px solid #000 !important;
}
*/


/* Styles for the loader overlay */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Dark background */
  display: none; /* Hidden by default */
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Simple spinner loader */
.loader1 {
  border: 12px solid #f3f3f3; /* Light gray */
  border-top: 12px solid #3498db; /* Blue */
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}

/* Keyframes for spinning animation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loader {
    margin: 20px auto 20px auto;
    position: relative;
    -webkit-animation: rotate-forever 1s infinite linear;
    animation: rotate-forever 1s infinite linear;
    height: 30px;
    width: 30px;
    border: 4px solid #ccc;
    border-right-color: rgba(0, 0, 0, 0);
    border-radius: 50%;
}

@keyframes rotate-forever {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.form
{
    padding: 2em;
    border-radius: 1em;
    box-shadow: 0 10px 25px rgba(90, 100, 100, .2);
}
.error
{
    border-color: #dc3545;
    background: #f9f0f1;
    padding-right: calc(1.5em + .75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(.375em + .1875rem) center;
    background-size: calc(.75em + .375rem) calc(.75em + .375rem);
}

.error-text
{
    font-size: 14px;
    margin-top: 5px;
    display: block;
    color: #f91919;
}
