/* Glass Card */
#contact-form {
    width:80%;
}

#contact-form h2 {
    text-align: center;
    margin-bottom: 25px;
    font-weight: 600;
}

.fcls { 
  font-family: 'Scope One', serif;
  font-weight: normal;
  font-size:1.5em;
  line-height:22px;
  text-align:justify;
  color:#000;
}

.himg { float: left; }

.headtxt { 
	margin-top:2px; 
	padding-left:90px;
}

.headtxt h2 { color:#EEE;}

@media (max-width: 575px) {
	.container { 
		max-width: 99% !important; 
	 }
	.himg { width:30%; }
	.headtxt { 			
		padding-left:50px;
	}
	.headtxt h2 { font-size: 20px; }
	.client-logo-section.pt-100 {
		padding-top: 120px;
	}
	.client-logo-section.mb-20 {
		margin-bottom: 0px;
	}
	.notice-cls {
		display: flex;
		flex-wrap: wrap;
	}	
	.notice-col {
		order: -1; 
		width: 100%;
		margin-bottom: 20px;
	}
}

@media (min-width: 576px) and (max-width: 991px) {		
	.container { 
		max-width: 99% !important; 
	 }
	.flexslider .slides img {
		padding-left: 10%;
	}
	.himg { 
		width:30%; 
	}
	.headtxt { 			
		padding-left:50px;
	}
	.headtxt h2 { font-size: 20px; }
	.client-logo-section.pt-100 {
		padding-top: 120px;
	}
	.client-logo-section.mb-20 {
		margin-bottom: 0px;
	}
	.notice-cls {
		display: flex;
		flex-wrap: wrap;
	}	
	.notice-col {
		order: -1; 
		width: 100%;
		margin-bottom: 20px;
	}
}

/* Inputs */
.form-group {
  position: relative;
  margin: 20px 0;
  width: 70%;
}

.form-group input, .form-group select {
  width: 100%;
  padding: 8px;
  font-size: 16px;
  border: 1px solid #ccc;
  outline: none;
  background: #fff;
}

.form-group label {
  position: absolute;
  top: 10px;
  left: 10px;
  color: #777;
  font-size: 16px;
  transition: 0.2s ease;
  pointer-events: none;
  background: #fff;
  padding: 0 5px;
}

/* When input is focused OR has value */
.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label {
  top: -8px;
  left: 8px;
  font-size: 12px;
  color: #007bff;
}

.form-group textarea {
  width: 100%;
  min-height: 100px;
  padding: 16px 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  resize: vertical;
  outline: none;
  background: #fff;
  font-family: inherit;
}

.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: -8px;
  left: 10px;
  font-size: 12px;
  color: #007bff;
}

.inputcls {
  width: 100%;
  padding: 6px;
  font-size: 16px;
  border: 1px solid #ccc;
  outline: none;
  background: #fff;
}

/* Button */
.submit-btn {
    width: 35%;
    padding: 12px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    color: #fff;
    background:#069;
    transition: 0.3s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.gst-grid {
  display: grid;
  grid-template-columns: 90% 10%;
  gap: 10px;
}

.gst-grid div {
  padding: 5px;
  text-align: left;
}

.grid-4 {
  display: grid;
  grid-template-columns: 8% 27% 23% 42%;
  gap: 10px;
}

.grid-4 div {
  padding: 5px;
  text-align: left;
}

/* Select2 Custom Styles */
.select2-container--default .select2-selection--single {
    height: 48px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 44px;
    padding-left: 15px;
    color: #333;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px;
}

.select2-container--default .select2-selection--single:focus {
    border-color: #22458f;
    outline: none;
}

.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #22458f;
}

.select2-dropdown {
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.select2-results__option {
    padding: 12px 15px;
}

.select2-results__option--highlighted {
    background-color: #22458f;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 2px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    font-size: 16px;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: #22458f;
    outline: none;
}

.auto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0; /* remove gap */
  border: 0px solid #ccc;
}

.auto-grid div {
  border: 1px solid #ccc;
  padding: 5px;
}

.open-grid {
  display: grid;
  grid-template-columns: 86% 7% 7%;
  gap: 0; /* remove gap */
  border: 0px solid #ccc;
}

.open-grid div {
  border: 1px solid #ccc;
  padding: 0px;
}

.search-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 30px;
    margin: 30px auto;
    max-width: 1400px;
    padding-left: 15px;
    padding-right: 15px;
}

.search-row {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
}

.search-field {
    flex: 1;
    min-width: 200px;
}

.captcha-section-inline {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.captcha-section-inline label {
    margin-bottom: 0;
    white-space: nowrap;
}

.captcha-section-inline .captcha-img {
    flex-shrink: 0;
}

.captcha-section-inline .captcha-input {
    flex: 1;
    min-width: 120px;
}

.buttons-field {
    flex-shrink: 0;
    display: flex;
    gap: 5px;
}

.buttons-field .search-btn,
.buttons-field .reset-btn {
    margin-top: 0;
    margin-left: 0;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 20px;
}

.results-container {
    max-width: 100%;
}

.search-tabs {
    display: flex;
    border-bottom: 2px solid #ddd;
    margin-bottom: 30px;
}

.search-tab {
    padding: 15px 30px;
    cursor: pointer;
    border: none;
    background: none;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s;
    position: relative;
}

.search-tab:hover {
    color: #22458f;
}

.search-tab.active {
    color: #22458f;
}

.search-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: #22458f;
}

.search-form {
    display: none;
}

.search-form.active {
    display: block;
}

.search-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: #22458f;
}

select.search-input {
    cursor: pointer;
    background-color: white;
}

.search-btn {
    padding: 15px 40px;
    background: #22458f;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 15px;
}

.search-btn:hover {
    background: #1a3670;
}

.reset-btn {
    padding: 15px 40px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 15px;
    margin-left: 10px;
}

.reset-btn:hover {
    background: #5a6268;
}

.captcha-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

.captcha-img {
    border: 2px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
}

.captcha-input {
    flex: 1;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.captcha-input:focus {
    outline: none;
    border-color: #22458f;
}

.refresh-icon {
    font-size: 24px;
    color: #22458f;
    cursor: pointer;
    transition: transform 0.3s;
}

.refresh-icon:hover {
    transform: rotate(180deg);
}

.refresh-btn {
    padding: 15px 25px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.refresh-btn:hover {
    background: #218838;
}

.refresh-btn i {
    font-size: 18px;
}

.error-message {
    color: #dc3545;
    font-weight: 600;
    margin-top: 10px;
    padding: 10px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
}

.results-table th {
    background: #22458f;
    color: white;
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
    font-size: 13px;
}

.results-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #ddd;
    font-size: 13px;
    white-space: nowrap;
}

.results-table tr:hover {
    background-color: #f8f9fa;
}

.results-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.case-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.case-card-header {
    background: linear-gradient(135deg, #656666 0%, #6c6c6d 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 8px 8px 0 0;
}

.case-card-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.case-card-body {
    padding: 10px;
}

.case-info-row {
    display: flex;
    margin-bottom: 4px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.case-info-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.case-info-label {
    width: 200px;
    font-weight: 600;
    color: #333;        
    background-color: #a0be6fb4;
    flex-shrink: 0;
    padding: 5px 10px;
}

.case-info-value {
    flex: 1;
    color: #555;
    line-height: 1.5;
    margin-left: 15px;
}

.case-info-value strong {
    color: #22458f;
}

.stage-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    background: #28a745;
    color: white;
}

.stage-badge.disposed {
    background: #dc3545;
}

.stage-badge.pending {
    background: #ffc107;
    color: #333;
}

.view-details-btn {
    display: inline-block;
    padding: 10px 25px;
    background: #22458f;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s;
    margin-top: 15px;
    cursor: pointer;
    border: none;
}

.view-details-btn:hover {
    background: #1a3670;
}

.view-pdf-btn {
    display: inline-block;
    padding: 10px 25px;
    background: #fc0c04;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s;
    margin-top: 15px;
    cursor: pointer;
    border: none;
}

.view-pdf-btn:hover {
    background: #fa2c2c;
}

/* Bootstrap Modal Custom Styles */
.modal-xl {
    max-width: 90%;
}

.modal-content {
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.modal-header {
    background: linear-gradient(135deg, #22458f 0%, #1a3670 100%);
    color: white;
    border-radius: 10px 10px 0 0;
}

.modal-title {
    font-weight: 600;
}

.btn-close {
    filter: brightness(0) invert(1);
}

.modal-body {
    padding: 25px;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-loading {
    text-align: center;
    padding: 50px;
    color: #666;
}

.modal-loading::after {
    content: '...';
    animation: dots 1.5s steps(5, end) infinite;
}

@keyframes dots {
    0%, 20% {
        content: '.';
    }
    40% {
        content: '..';
    }
    60%, 100% {
        content: '...';
    }
}

.modal-error {
    text-align: center;
    padding: 50px;
    color: #dc3545;
}

.petitioner-section, .respondent-section {
    background: #f8f9fa;
    padding: 5px;
    border-radius: 5px;
    margin-bottom: 5px;
}

.petitioner-section h4, .respondent-section h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #22458f;
    font-weight: 600;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 5px;
}

.pagination a, .pagination span {
    padding: 10px 15px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #22458f;
    border-radius: 5px;
}

.pagination a:hover {
    background: #22458f;
    color: white;
}

.pagination .current {
    background: #22458f;
    color: white;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 18px;
}

.results-header {
    background: #22458f;
    color: #ffffff;
    padding: 15px;
    border-radius: 5px 5px 0 0;
    margin-top: 30px;
}

.badge {
    display: inline-block;
    padding: 5px 10px;
    background: #e9ecef;
    border-radius: 3px;
    font-size: 12px;
    margin-right: 5px;
}

@media (max-width: 576px) {
    .search-container {
        padding: 20px 15px;
        margin: 15px auto;
    }

    .search-tabs {
        flex-direction: column;
    }

    .search-tab {
        padding: 12px 15px;
        font-size: 14px;
    }

    .search-row {
        flex-direction: column;
        gap: 5px;
    }

    .search-field {
        width: 100%;
        min-width: auto;
    }

    .search-input {
        padding: 12px;
        font-size: 14px;
    }

    .captcha-section-inline {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .captcha-img {
        width: 100%;
        height: auto;
    }

    .captcha-input {
        width: 100%;
    }

    .refresh-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }

    .buttons-field {
        width: 100%;
        flex-direction: column;
    }

    .search-btn, .reset-btn {
        width: 100%;
        padding: 12px 20px;
        margin-top: 10px;
        margin-left: 0;
    }

    .case-card {
        margin-bottom: 15px;
    }

    .case-card-header h3 {
        font-size: 15px;
        line-height: 1.4;
    }

    .case-card-body {
        padding: 15px;
    }

    .case-info-row {
        flex-direction: column;
        margin-bottom: 12px;
    }

    .case-info-label {
        width: 100%;
        margin-bottom: 5px;
        font-size: 13px;
    }

    .case-info-label[style*="margin-left"] {
        margin-left: 0 !important;
    }

    .case-info-value {
        font-size: 13px;
    }

    .petitioner-section, .respondent-section {
        padding: 12px;
        margin-bottom: 8px;
    }

    .petitioner-section h4, .respondent-section h4 {
        font-size: 13px;
    }

    .view-details-btn, .view-pdf-btn {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
    }

    .pagination {
        flex-wrap: wrap;
    }

    .pagination a, .pagination span {
        padding: 8px 12px;
        font-size: 13px;
    }

    .results-header h6 {
        font-size: 14px;
    }

    .modal-content {
        width: 95%;
        margin: 5% auto;
        max-width: none;
    }

    .modal-header h3 {
        font-size: 16px;
    }

    .modal-body iframe {
        height: 400px;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .search-container {
        padding: 25px 20px;
        margin: 20px auto;
    }

    .search-tabs {
        flex-wrap: wrap;
    }

    .search-tab {
        padding: 12px 20px;
        font-size: 14px;
    }

    .search-row {
        flex-wrap: wrap;
    }

    .search-field {
        min-width: 35%;
    }

    .case-info-row {
        flex-direction: column;
    }

    .case-info-label {
        width: 100%;
        margin-bottom: 5px;
    }

    .case-info-label[style*="margin-left"] {
        margin-left: 0 !important;
    }

    .captcha-section-inline {
        flex-wrap: wrap;
    }

    .case-card-header h3 {
        font-size: 16px;
    }

    .case-card-body {
        padding: 18px;
    }
}

@media (min-width: 769px) and (max-width: 992px) {
    .search-container {
        padding: 25px 20px;
    }

    .case-info-label {
        width: 130px;
    }

    .case-card-header h3 {
        font-size: 17px;
    }

    .case-card-body {
        padding: 20px;
    }
}

@media (min-width: 993px) and (max-width: 1200px) {
    .search-container {
        padding: 30px 25px;
    }

    .case-info-label {
        width: 140px;
    }

    .case-card-body {
        padding: 22px;
    }
}

@media (min-width: 1201px) {
    .search-container {
        padding: 30px;
    }

    .case-info-label {
        width: 150px;
    }

    .case-card-body {
        padding: 25px;
    }
}

/* Modal table styles from case-entry-view.php */
.view-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
}
.view-table td {
    padding: 8px;
    border-bottom: 1px solid #ddd;
}
.view-table tr:nth-child(even) {
    background-color: #f9f9f9;
}
.view-table td.label {
    font-weight: bold;
    color: #333;
    width: 20%;
    vertical-align: top;
    padding: 10px !important;
    background-color: darkkhaki !important;
}
.view-table .value {
    color: #666;
}
.header {
    background-color: #434a4d;
    color: white;
    padding: 10px;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

/* PDF CAPTCHA Modal Styles */
#pdfCaptchaModal .modal-dialog {
    max-width: 400px;
}

#pdfCaptchaModal .modal-content {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

#pdfCaptchaModal .modal-header {
    background-color: #22458f;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

#pdfCaptchaModal .modal-title {
    color: #ffffff;
    font-weight: 600;
}

#pdfCaptchaModal .modal-body {
    padding: 25px;
}

#pdfCaptchaModal .captcha-img {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
    background-color: #fff;
}

#pdfCaptchaModal .refresh-btn {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px 15px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}

#pdfCaptchaModal .refresh-btn:hover {
    background-color: #e9ecef;
    border-color: #ccc;
}

#pdfCaptchaModal .captcha-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    margin-top: 10px;
}

#pdfCaptchaModal .captcha-input:focus {
    outline: none;
    border-color: #22458f;
    box-shadow: 0 0 0 3px rgba(34, 69, 143, 0.1);
}

#pdfCaptchaModal .modal-footer {
    padding: 15px 25px;
    border-top: 1px solid #dee2e6;
}

#pdfCaptchaModal .btn-primary {
    background-color: #22458f;
    border-color: #22458f;
}

#pdfCaptchaModal .btn-primary:hover {
    background-color: #1a3670;
    border-color: #1a3670;
}

/* Flatpickr Datepicker Customization */
.flatpickr-calendar {
    font-family: 'Open Sans', sans-serif;
    border: 1px solid #ddd;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.inRange,
.flatpickr-day.startRange.inRange,
.flatpickr-day.endRange.inRange,
.flatpickr-day.selected:focus,
.flatpickr-day.startRange:focus,
.flatpickr-day.endRange:focus,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover,
.flatpickr-day.selected.prevMonthDay,
.flatpickr-day.startRange.prevMonthDay,
.flatpickr-day.endRange.prevMonthDay,
.flatpickr-day.selected.nextMonthDay,
.flatpickr-day.startRange.nextMonthDay,
.flatpickr-day.endRange.nextMonthDay {
    background: #22458f;
    border-color: #22458f;
}

.flatpickr-day:hover {
    background: #f0f0f0;
    border-color: #f0f0f0;
}

.flatpickr-months .flatpickr-month,
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month .cur-month {
    color: #22458f;
    font-weight: 600;
}

.flatpickr-weekday {
    color: #666;
}

.flatpickr-day.today {
    border: 2px solid #22458f;
}
