/* Custom CSS for Travancore Traits */

/* Availability indicators */
.available-item {
    background-color: #d4edda;
    border-left: 4px solid #28a745;
    color: #155724;
}

.nearby-item {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    color: #856404;
}

.unavailable-item {
    background-color: #f8d7da;
    border-left: 4px solid #dc3545;
    color: #721c24;
    text-decoration: line-through;
}

.list-group-item {
    margin-bottom: 5px;
    border-radius: 4px;
    font-weight: 500;
}

/* Additional styles for consistency */
.navbar-brand {
    font-weight: bold;
    color: #0a4a3c !important;
}

.card {
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.btn-primary {
    background-color: #0a4a3c;
    border-color: #0a4a3c;
}

.btn-primary:hover {
    background-color: #08382d;
    border-color: #08382d;
}

.btn-outline-primary {
    color: #0a4a3c;
    border-color: #0a4a3c;
}

.btn-outline-primary:hover {
    background-color: #0a4a3c;
    border-color: #0a4a3c;
    color: white;
}

/* Status badges */
.status-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-block;
}

.status-pending { background-color: #6c757d; color: white; }
.status-bidding { background-color: #0dcaf0; color: black; }
.status-approved { background-color: #ffc107; color: black; }
.status-confirmed { background-color: #198754; color: white; }
.status-completed { background-color: #6f42c1; color: white; }
.status-cancelled { background-color: #dc3545; color: white; }

/* Form styling */
.form-control:focus {
    border-color: #0a4a3c;
    box-shadow: 0 0 0 0.25rem rgba(10, 74, 60, 0.25);
}

/* Table styling */
.table th {
    background-color: #f8f9fa;
    color: #0a4a3c;
    font-weight: 600;
}

/* Alert customization */
.alert-primary {
    background-color: rgba(10, 74, 60, 0.1);
    border-color: #0a4a3c;
    color: #0a4a3c;
}

/* Footer */
footer {
    background-color: #f8f9fa !important;
}

/* REMOVE OR ADJUST LOGO SIZE RESTRICTION */
/* Let the logo use its natural size */
.navbar-brand img {
    /* Remove height restriction or adjust to be larger */
    height: 50px; /* Increase from 40px to 50px */
    width: auto;
    margin-right: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .navbar-nav .btn {
        margin-top: 5px;
        margin-bottom: 5px;
    }

    /* Make logo smaller on mobile */
    .navbar-brand img {
        height: 40px; /* Slightly smaller on mobile */
    }
}

/* Loading spinner */
.spinner-border {
    color: #0a4a3c;
}

/* Custom alerts from your base.html */
.custom-alert {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1050;
    max-width: 500px;
    animation: slideIn 0.5s forwards;
}

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

.alert-danger-custom {
    background-color: #ff5252;
    color: #fff;
    border: 2px solid #d32f2f;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    font-weight: bold;
}

.alert-danger-custom h5 {
    color: #ffeb3b;
    font-weight: bold;
    margin-top: 0;
}

.alert-danger-custom ul {
    margin-top: 10px;
    margin-bottom: 10px;
    padding-left: 20px;
}

.alert-danger-custom li {
    margin-bottom: 5px;
}

/* Custom Kerala Experience Form Styles */
.booking .form-floating input,
.booking .form-floating select,
.booking .form-floating textarea,
.booking .form-floating .form-control,
.booking .form-floating .form-select {
    background-color: #0a4a3c !important;
    color: white !important;
    border: 1px solid #d9a962 !important;
    transition: all 0.3s ease;
}

/* When field is focused/active - white background with dark green text */
.booking .form-floating input:focus,
.booking .form-floating select:focus,
.booking .form-floating textarea:focus,
.booking .form-floating .form-control:focus,
.booking .form-floating .form-select:focus {
    background-color: white !important;
    color: #0a4a3c !important;
    border: 2px solid #0a4a3c !important;
    box-shadow: 0 0 0 0.25rem rgba(10, 74, 60, 0.25);
}

/* When field has content (not empty) - keep white background with dark green text */
.booking .form-floating input:not(:placeholder-shown),
.booking .form-floating textarea:not(:placeholder-shown),
.booking .form-floating select:not([value=""]):not(:focus) {
    background-color: white !important;
    color: #0a4a3c !important;
}

/* Labels - always visible and properly colored */
.booking .form-floating label {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* When field is focused, adjust label color */
.booking .form-floating input:focus ~ label,
.booking .form-floating select:focus ~ label,
.booking .form-floating textarea:focus ~ label {
    color: #0a4a3c !important;
    opacity: 0.8;
}

/* When field has content, adjust label position and color */
.booking .form-floating input:not(:placeholder-shown) ~ label,
.booking .form-floating textarea:not(:placeholder-shown) ~ label,
.booking .form-floating select:not([value=""]):not(:focus) ~ label {
    color: #0a4a3c !important;
    opacity: 0.8;
}

/* Placeholder text - only visible when field is empty and not focused */
.booking .form-floating input::placeholder,
.booking .form-floating textarea::placeholder,
.booking .form-floating select::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
    opacity: 1;
}

/* Dropdown options */
.booking select option {
    background-color: white;
    color: #0a4a3c;
}

.booking select option:hover,
.booking select option:checked {
    background-color: #d9a962;
    color: #0a4a3c;
}

/* Submit button styling */
.booking .btn-outline-light {
    border: 2px solid #d9a962 !important;
    color: white !important;
    font-weight: 600;
    background-color: transparent;
    transition: all 0.3s ease;
}

.booking .btn-outline-light:hover {
    background-color: #d9a962 !important;
    color: #0a4a3c !important;
    border: 2px solid #0a4a3c !important;
}
