/* Styled by ANUBIT TECHNOLOGIES (OPC) PRIVATE LIMITED */
/* Government Medical College Project - Animated & Colorful Sidebar */

/* Common Style */
body {
    background-color: #ffffff;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('BACK-2.jpg');
    background-size: cover;
    background-position: center; /* Centers the background image */
    background-repeat: no-repeat;
    background-attachment: fixed; /* Ensures the image stays fixed while scrolling */
    opacity: 0.2; /* Adjust the opacity as needed */
    z-index: -1; /* Ensures the image stays behind other content */
}



#page-wrapper {
    background-color: #f5f7fb4f;
    height: 93vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #0172ff #f5f7fb;
}

/* Scrollbar for WebKit browsers */
#page-wrapper::-webkit-scrollbar {
    width: 8px;
}
#page-wrapper::-webkit-scrollbar-track {
    background: #f5f7fb;
}
#page-wrapper::-webkit-scrollbar-thumb {
    background-color: #0172ff;
    border-radius: 10px;
    border: 2px solid #f5f7fb;
}

/* Page Banner */
.page-banner {
    min-height: 100px;
    background-size: cover;
    background-repeat: no-repeat;
    text-align: right;
    padding: 2rem;
    border-bottom: 7px groove #0172ff;
    height: 200px;
}

/* Main Container */
.page_container {
    padding: 0px!important;
    border-style: groove;
    border-width: 0px 2px;
    border-color: #002d64;
    max-width: 1920px;
    background-color: #f5f7fb;
}

.page_content {
    padding: 4rem;
}

/* Brand Logo */
.brand_logo {}

/* Sidebar */
.sidebar {
    background: linear-gradient(135deg, #002366, #00348a);
    min-height: 100vh;
    padding: 20px;
    transition: background 0.3s ease-in-out;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar ul li {
    margin-bottom: 10px;
}

.sidebar ul li a {
    display: block;
    padding: 12px 16px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.sidebar ul li a.active {
    color: #ffffff;
    background-color: rgba(0, 155, 255, 0.72);
    border-right: 7px solid #0172ff;
}

.sidebar ul li a:hover {
    background: linear-gradient(135deg, #0172ff, #005ec4);
    transform: scale(1.02);
}

/* Keyframes */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(1, 114, 255, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(1, 114, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(1, 114, 255, 0); }
}

/* Dropdown */
#side-menu li ul.nav-second-level {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    background: rgba(255, 255, 255, 0.1);
    padding-left: 10px;
    border-left: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

#side-menu li:hover ul.nav-second-level {
    max-height: 500px;
}

/* Navbar / Topbar - Government Feel */
.navbar-default {
    background-color: #003366;
    border-color: #002244;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    color: white;
}

.navbar-default .navbar-brand {
    color: white;
    font-weight: bold;
    font-size: 20px;
    padding-left: 20px;
}

.navbar-default .navbar-brand:focus,
.navbar-default .navbar-brand:hover {
    color: #d0fffb;
    background-color: transparent;
}

.gov-header-title {
    color: #ffffff;
    font-size: 24px;
    font-weight: bold;
    padding: 12px 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.navbar-top-links li a {
    color: white;
}

.nav>li>a:focus, .nav>li>a:hover {
    text-decoration: none;
    background-color: #0549c9;
}

.nav .open>a, .nav .open>a:focus, .nav .open>a:hover {
    background-color: #0d7bd3;
    border-color: #337ab7;
}

.navbar-top-links .dropdown-user {
    background-color: #05286c;
}

/* Panels & Cards */
.panel-blue,
.panel-sky,
.panel-light-red,
.panel-light-green,
.panel-purple,
.panel-white {
    border: 1px solid transparent;
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
    color: white!important;
}

.panel-blue {
    background-color: #000946!important;
    border-color: #000946!important;
}

.panel-sky {
    background-color: #00348a!important;
    border-color: #00348a!important;
}

.panel-light-red {
    background-color: #e60202!important;
    border-color: #e60202!important;
}

.panel-light-green {
    background-color: #26c300!important;
    border-color: #26c300!important;
}

.panel-purple {
    background-color: #3b0056!important;
    border-color: #3b0056!important;
}

.panel-white {
    background-color: white!important;
    border-color: black!important;
    color: black!important;
}

.panel-blue .panel-footer,
.panel-sky .panel-footer,
.panel-light-red .panel-footer,
.panel-light-green .panel-footer,
.panel-purple .panel-footer,
.panel-white .panel-footer {
    background-color: white!important;
    color: inherit!important;
}

/* Additional Panel */
.panel-dark-green {
    border-color: #014e01;
}
.panel-dark-green > .panel-heading {
    background-color: #166616;
    border-color: #003800;
    color: white;
}
.panel-dark-green > a {
    color: #004c00;
    font-weight: bold;
}

/* Page Header */
.page-header {
    text-transform: capitalize;
    font-size: 27px;
    font-weight: bold;
    color: #004aa7;
    margin-top: 19px;
}

/* Page Action Links */
.page-action-links {
    margin-top: 19px;
}
.page-action-links .btn {
    margin-right: 10px;
    border-radius: 25px;
    padding: 8px 20px;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.page-action-links .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Header Action Button */
.header_action_button {
    padding: 10px 22px;
    background-color: #0172ff;
    color: #ffffff;
    font-weight: bold;
    border-radius: 30px;
    border: none;
    font-size: 15px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.header_action_button:hover {
    background-color: #005ec4;
    transform: translateY(-1px);
    cursor: pointer;
}

/* Tag Elements */
.red_span,
.green_span,
.span_red,
.span_green {
    color: white;
    padding: 7px;
    border-radius: 23px;
    width: 100%;
    text-align: center;
    display: inline-block;
}

.red_span,
.span_red {
    background-color: red;
}

.green_span,
.span_green {
    background-color: green;
}

/* Login Form */

/* Login panel styling */
.login-panel {
    width: 100%;
}

.panel-body {
    padding: 0;
}

.panel-body img {
    max-height: 150px;
    margin-bottom: 10px;
}

.panel-body h4 {
    margin-bottom: 20px;
    color: #333;
}

/* Form controls */
.form-group {
    margin-bottom: 20px;
}

.loginField {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border-radius: 6px;
}

/* Form Styling */
.ab_form {
    background-color: white;
    padding: 10px;
    box-shadow: 3px 5px 8px #ebebeb;
    margin-bottom: 21px!important;
}

.ab_form .form-control {
    background-color: #009bff03;
    border-radius: 0px!important;
}

.ab_form .form-control:focus {
    color: #001530;
    background-color: #fff;
    border-color: #001530;
    outline: 0;
    box-shadow: 0px 0px 2px rgba(71, 183, 255, 0.55);
    transition: border-color 7s;
}

.ab_content_heading {
    background-color: #ffffff;
    color: #000914;
    padding: 7px;
    margin: 14px 0px;
    box-shadow: 3px 5px 8px #ebebeb;
}

/* Table Stripe */
.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #ededed96;
}

.table-striped > tbody > tr:hover {
    background-color: #d6ebf587;
    color: black;
    /* font-weight: bold; */
}

/* Details Card */
.details-card {
    background-color: aliceblue;
    padding: 7px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 6px;
    border: 1px solid #47b7ff;
    border-radius: 11px;
}

/* Well Component */
.well {
    padding: 7px;
    background-color: aliceblue;
    min-height: auto;
    margin-bottom: 0px!important;
    margin-top: 14px!important;
}

/* Table Style */
.table-container {
    overflow-y: auto;
    position: relative;
}

.table-container table,
.table-container-print table {
    width: 100%;
    border-collapse: collapse;
}

.table-container thead th,
.table-container-print thead th {
    position: sticky;
    top: 0;
    background: #f1f1f1;
    z-index: 1;
}

.table-container th,
.table-container td,
.table-container-print th,
.table-container-print td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center!important;
}

/* Print Styles */
@media print {
    .no-print,
    .sidebar-nav {
        display: none;
    }

    .block-border {
        border: 2px dotted black!important;
    }

    .entry-hide,
    .hide-th,
    .hide-heading:first-child .hide-th {
        border: none!important;
        color: white!important;
    }

    #page-wrapper {
        margin: 0px!important;
        overflow: visible;
    }

    .table-container {
        max-height: 100%!important;
        min-height: 100%!important;
        overflow: visible!important;
    }
}

/* Primary Button */
.btn-primary {
    background-color: #0172ff;  /* Blue color */
    color: #fff;
    border: none;
    padding: 10px 20px;  /* Slightly larger padding for a more comfortable look */
    border-radius: 30px;  /* Fully rounded corners */
    font-weight: bold;
    transition: background 0.3s ease, transform 0.3s ease; /* Transition for background and scaling */
}

.btn-primary:hover {
    background-color: #005ec4;  /* Darker blue on hover */
    cursor: pointer;
    transform: scale(1.05);  /* Slight scale-up effect on hover */
}

/* Danger Button */
.btn-danger {
    background-color: #e60202;  /* Red color */
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;  /* Fully rounded corners */
    font-weight: bold;
    transition: background 0.3s ease, transform 0.3s ease; /* Transition for background and scaling */
}

.btn-danger:hover {
    background-color: #a60000;  /* Darker red on hover */
    cursor: pointer;
    transform: scale(1.05);  /* Slight scale-up effect on hover */
}

/* Success Button */
.btn-success {
    background-color: #28a745;  /* Green color */
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;  /* Fully rounded corners */
    font-weight: bold;
    transition: background 0.3s ease, transform 0.3s ease; /* Transition for background and scaling */
}

.btn-success:hover {
    background-color: #218838;  /* Darker green on hover */
    cursor: pointer;
    transform: scale(1.05);  /* Slight scale-up effect on hover */
}

/* General Form Control Styling */
.form-control, .form-select, .form-control-textarea, .form-control-date {
    border-radius: 25px;  /* Rounded corners for all form elements */
    border: 1px solid #ccc;  /* Subtle border */
    padding: 8px 14px;  /* Reduced padding to make it more compact */
    font-size: 14px;  /* Slightly smaller font size for a more compact look */
    font-weight: normal;
    line-height: 1.4;  /* Adjust line height for proper content alignment */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;  /* Smooth transition for border and shadow */
    box-sizing: border-box;  /* Ensures padding is included in width and height */
    height: 36px;  /* Set fixed height for consistency */
}

/* Date Picker Specific Styling */
.form-control-date {
    appearance: none;  /* Remove default styling in most browsers */
    -webkit-appearance: none;  /* Remove default styling in WebKit browsers */
    -moz-appearance: none;  /* Remove default styling in Firefox */
    height: 36px;  /* Set a fixed height for the date picker */
    padding: 6px 14px;  /* Adjust padding for a more compact date picker */
    font-size: 14px;  /* Keep font size consistent */
}

/* Focused Form Control */
.form-control:focus, .form-select:focus, .form-control-date:focus {
    border-color: #0172ff;  /* Blue focus border */
    box-shadow: 0 0 5px rgba(1, 114, 255, 0.5);  /* Subtle focus shadow */
    outline: none;  /* Remove default outline */
}

/* Disabled Form Control */
.form-control:disabled, .form-select:disabled, .form-control-date:disabled {
    background-color: #f5f5f5;  /* Light gray background */
    border-color: #ddd;  /* Lighter border color */
    cursor: not-allowed;  /* Change cursor to not-allowed */
}

/* Adjusting Textarea */
.form-control-textarea {
    min-height: 36px;  /* Ensure the textarea is the same height as other inputs */
    padding: 6px 14px;  /* Adjust padding for textarea */
}

/* Select Box Styling */
.form-select {
    height: 36px;  /* Ensure select box height matches */
    padding: 6px 14px;  /* Adjust padding for a more compact select box */
    font-size: 14px;  /* Keep font size consistent */
}

/* Date Picker Icon (Optional) */
.form-control-date::after {
    content: '📅';  /* Custom date picker icon */
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    pointer-events: none;  /* Ensure the icon doesn't interfere with interaction */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .page_content {
        padding: 1rem;
    }

    .ab_form {
        padding: 10px;
    }

    .navbar-default .navbar-brand {
        font-size: 18px;
    }

    .page-banner {
        text-align: center;
        padding: 1rem;
    }

    .sidebar {
        padding: 10px;
    }
}
