/* ====================================
   Modern Date Picker & Alert Styles
   ==================================== */

/* Date Picker Container */
.date-picker-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

.date-picker-label {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.date-picker-label i {
    color: #d4a574;
    font-size: 1rem;
}

/* Styled Date Input */
.date-picker-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    color: #2d3748;
    background: white;
    transition: all 0.3s ease;
    cursor: pointer;
}

.date-picker-input:focus {
    outline: none;
    border-color: #d4a574;
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

.date-picker-input:hover {
    border-color: #d4a574;
}

/* Calendar Icon Overlay */
.date-picker-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #d4a574;
    pointer-events: none;
    font-size: 1.125rem;
}

/* Modern Alert Box */
.alert-custom {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 2px solid;
    animation: slideInDown 0.4s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-custom.alert-danger {
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
    border-color: #fc8181;
    color: #742a2a;
}

.alert-custom.alert-warning {
    background: linear-gradient(135deg, #fffaf0 0%, #feebc8 100%);
    border-color: #f6ad55;
    color: #7c2d12;
}

.alert-custom.alert-success {
    background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
    border-color: #68d391;
    color: #22543d;
}

.alert-custom.alert-info {
    background: linear-gradient(135deg, #ebf8ff 0%, #bee3f8 100%);
    border-color: #63b3ed;
    color: #2c5282;
}

/* Alert Icon */
.alert-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.alert-danger .alert-icon {
    background: #fc8181;
    color: white;
}

.alert-warning .alert-icon {
    background: #f6ad55;
    color: white;
}

.alert-success .alert-icon {
    background: #68d391;
    color: white;
}

.alert-info .alert-icon {
    background: #63b3ed;
    color: white;
}

/* Alert Content */
.alert-content {
    flex: 1;
}

.alert-title {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.alert-message {
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0;
}

/* Alert Close Button */
.alert-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: inherit;
    opacity: 0.6;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
    transition: opacity 0.3s ease;
}

.alert-close:hover {
    opacity: 1;
}

/* Room Not Available Badge */
.room-unavailable-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #fc8181 0%, #f56565 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Disabled Date Input */
.date-picker-input:disabled {
    background: #f7fafc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Loading State */
.alert-loading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top-color: #d4a574;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .date-picker-input {
        padding: 0.75rem;
        font-size: 0.9375rem;
    }

    .alert-custom {
        padding: 1rem;
        flex-direction: column;
        gap: 0.75rem;
    }

    .alert-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}