:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #3498db;
    --light-gray: #ecf0f1;
    --text-color: #2c3e50;
}

body {
    color: var(--text-color);
    background-color: var(--light-gray);
}

.navbar {
    background-color: white !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 0;
}

.navbar-logo {
    height: 40px;
    width: 40px;
    vertical-align: middle;
}

.company-logo-img {
    height: 46px;  /* Increased from 40px by 15% */
    width: auto;
    max-width: 230px;  /* Increased from 200px by 15% */
    object-fit: contain;
    vertical-align: middle;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: var(--primary-color) !important;
}

.navbar-brand span {
    font-size: 1.2rem;
}

.btn-primary i {
    margin-right: 0.5rem;
    vertical-align: middle;
}

.card {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: none;
    margin-bottom: 2rem;
}

.card-header {
    background-color: var(--primary-color) !important;
    border-bottom: none;
}

.btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.progress {
    height: 1rem;
    background-color: rgba(255,255,255,0.2);
    border-radius: 1rem;
    overflow: hidden;
}

.progress-bar {
    background-color: var(--accent-color);
    transition: width 0.3s ease;
    position: relative;
}

.progress-text {
    position: absolute;
    width: 100%;
    text-align: center;
    font-size: 0.75rem;
    color: white;
    text-shadow: 0 0 2px rgba(0,0,0,0.5);
}

.form-control:focus, .form-select:focus,
input[list]:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
}

/* Style for datalist options */
input[list] {
    background-color: white;
}

input[list]::-webkit-calendar-picker-indicator {
    opacity: 0.6;
}

.card {
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-2px);
}

.form-label {
    font-weight: 500;
    color: var(--primary-color);
}

.invalid-feedback {
    font-size: 0.875rem;
    color: #e74c3c;
}

.btn {
    transition: all 0.2s;
    padding: 0.5rem 1.5rem;
}

.btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-1px);
}

.review-section {
    background-color: var(--light-gray);
    padding: 1.5rem;
    border-radius: 0.25rem;
}

.review-section h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.alert {
    border: none;
    border-radius: 0.25rem;
}
.form-switch .form-check-input {
    width: 1.5em;
}

.form-switch .form-check-input:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.hospital-field {
    transition: all 0.3s ease;
}

#hospitalCountContainer {
    transition: display 0.3s ease;
}

/* Custom Modal Styles - No Bootstrap conflicts */
.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.custom-modal.show {
    opacity: 1;
}

.custom-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.custom-modal-content {
    position: relative;
    background: white;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transform: scale(0.9);
    transition: transform 0.2s ease;
}

.custom-modal.show .custom-modal-content {
    transform: scale(1);
}

.custom-modal-header {
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f9fa;
}

.custom-modal-header h5 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--primary-color);
}

.custom-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-close-btn:hover {
    color: #000;
}

.custom-modal-body {
    padding: 1rem;
}

.custom-modal-footer {
    padding: 1rem;
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    background-color: #f8f9fa;
}

.alert {
    transition: opacity 0.15s linear;
}

.alert.fade {
    opacity: 0;
}

.alert.show {
    opacity: 1;
}
