/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #f0f4f8;
    color: #2d3748;
}

.header-container {
    background-color: #ffffff;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid #800000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    height: 80px;
    object-fit: contain;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 2rem;
    font-weight: 500;
    color: #444;
    background-color: #f8f9fa;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.iso-logo {
    height: 50px;
}

main {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

h2 {
    color: #800000;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.search-panel {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.search-panel h3 {
    color: #2d3748;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 500;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.form-group {
    flex: 1;
    min-width: 250px;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #4a5568;
    font-weight: 500;
}

input, select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: white;
}

input:focus, select:focus {
    outline: none;
    border-color: #800000;
    box-shadow: 0 0 0 3px rgba(128,0,0,0.1);
}

.full-width {
    width: 100%;
}

.button-group-center {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

button {
    padding: 0.75rem 2.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#searchBtn {
    background-color: #800000;
    color: white;
}

#searchBtn:hover {
    background-color: #9a0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

#resetBtn {
    background-color: #64748b;
    color: white;
}

#resetBtn:hover {
    background-color: #475569;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.important-instructions {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.important-instructions h4 {
    color: #2d3748;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 500;
}

.important-instructions ul {
    list-style: none;
}

.important-instructions li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.important-instructions li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #800000;
    font-weight: bold;
}

.highlight {
    background-color: #fef3c7;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.results-table {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
    width: 95%;
    margin: 0 auto;
}

table {
    width: 100%;
    min-width: max-content;
    border-collapse: separate;
    border-spacing: 0;
}

th, td {
    padding: 0.5rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.9rem;
}

th {
    background-color: #800000;
    color: white;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.8rem;
}

tr:hover {
    background-color: #f8fafc;
}

.details-row {
    background-color: #f8f9fa;
}

.details-row.hidden {
    display: none;
}

.test-details {
    padding: 20px;
}

.details-grid {
    display: grid;
    gap: 20px;
    padding: 15px;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.detail-section {
    border: 1px solid #e0e0e0;
    padding: 15px;
    border-radius: 4px;
    background-color: #ffffff;
}

.detail-section h4 {
    color: #800000;
    margin-bottom: 10px;
    font-size: 1rem;
    border-bottom: 2px solid #800000;
    padding-bottom: 5px;
}

.stability-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.info-grid div {
    padding: 5px;
}

.highlight-text {
    background-color: #fff8dc;
    padding: 5px 10px;
    border-radius: 3px;
    display: inline-block;
}

.expand-btn {
    background-color: #4CAF50;
    width: 24px;
    height: 24px;
    font-size: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0 auto;
}

.expand-btn:hover {
    background-color: #45a049;
    transform: scale(1.1);
}

/* Test Details Styling */
.test-info-container {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    margin: 10px;
}

.test-header {
    background-color: #fff;
    padding: 10px;
    border-bottom: 1px solid #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
}

.test-content {
    display: flex;
    gap: 20px;
    padding: 15px;
}

.main-details {
    flex: 3;
    background-color: #fff;
    padding: 15px;
    border: 1px solid #ccc;
}

.email-section {
    display: flex;
    gap: 10px;
    align-items: center;
}

.email-input {
    width: 250px;
    height: 38px;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.email-input:focus {
    outline: none;
    border-color: #800000;
    box-shadow: 0 0 0 3px rgba(128,0,0,0.1);
}

.send-btn {
    height: 38px;
    background-color: #800000;
    color: white;
    padding: 0 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: normal;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.send-btn:hover {
    background-color: #9a0000;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stability-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 5px;
}

.stability-table th,
.stability-table td {
    border: 1px solid #ccc;
    padding: 5px;
    text-align: center;
    font-size: 0.9rem;
    color: #333;
}

.stability-table th {
    background-color: #f5f5f5;
    font-weight: 500;
    color: #333;
}

.stability-table td {
    background-color: #ffffff;
}

.highlight-yellow {
    background-color: #ffeb3b;
    padding: 2px 5px;
}

/* Adjust existing styles */
.expand-btn {
    background-color: #4CAF50;
    width: 24px;
    height: 24px;
    font-size: 16px;
}

.details-row {
    background-color: #e6f3ff;
}

.test-info {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.test-id {
    font-weight: 500;
    color: #4a5568;
}

.test-name {
    font-weight: 500;
    color: #2d3748;
}

.search-container {
    position: relative;
    width: 100%;
}

.suggestions-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-height: 200px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
    margin-top: -2px;
}

.suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background-color: #f8f9fa;
    color: #800000;
}

/* Scrollbar styling for suggestions */
.suggestions-container::-webkit-scrollbar {
    width: 8px;
}

.suggestions-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 0 8px 0;
}

.suggestions-container::-webkit-scrollbar-thumb {
    background: #800000;
    border-radius: 4px;
}

.suggestions-container::-webkit-scrollbar-thumb:hover {
    background: #9a0000;
}

.suggestion-item.selected {
    background-color: #f1f5f9;
}

.instructions-content {
    min-height: 100px;
    position: relative;
}

.loading-spinner {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

.loading-spinner::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #800000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.instructions-content.loaded .loading-spinner {
    display: none;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    background-color: #48bb78;
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease-out;
}

.notification.error {
    background-color: #f56565;
}

.notification-close {
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.notification-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Price Styles */
.price-info {
    font-weight: 500;
    color: #2d3748;
    background-color: #f7fafc;
    padding: 8px 16px;
    border-radius: 6px;
    display: inline-block;
    margin: 10px 0;
}

.price-value {
    color: #800000;
    font-weight: 600;
}

#testTable th:first-child {
    width: 30px;
    min-width: 30px;
}

#testTable th:nth-child(2) { /* ITEMID */
    width: 70px;
    min-width: 70px;
}

#testTable th:nth-child(3) { /* ItemName */
    width: 135px;
    min-width: 135px;
}

#testTable th:nth-child(4) { /* DOCTOR SPECIALITY */
    width: 130px;
    min-width: 130px;
}

#testTable th:nth-child(5) { /* DISEASE DESCRIPTION */
    width: 130px;
    min-width: 130px;
}

#testTable th:nth-child(6) { /* Test Status */
    width: 80px;
    min-width: 80px;
}

/* Add spacing between DOCTOR SPECIALITY and DISEASE DESCRIPTION */
#testTable th:nth-child(4), 
#testTable td:nth-child(4) {
    padding-right: 25px;
}

/* Add word-wrap to ensure text doesn't overflow */
#testTable td {
    word-break: break-word;
} 