/* Appagee Hotel Manager - Frontend Styles */

.appagee-hotel-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.appagee-hotel-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    background: #fff;
    transition: box-shadow 0.3s;
}

.appagee-hotel-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.appagee-hotel-card h3 {
    margin-top: 0;
    color: #333;
}

.hotel-address {
    color: #666;
    font-size: 0.9em;
}

.hotel-description {
    color: #444;
    margin: 15px 0;
}

.hotel-view-details {
    display: inline-block;
    padding: 8px 16px;
    background: var(--appagee-primary, #1E3A8A);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.hotel-view-details:hover {
    background: var(--appagee-secondary, #3B82F6);
}

/* Hotel Details */
.appagee-hotel-details {
    max-width: 800px;
    margin: 20px 0;
}

.appagee-hotel-details h2 {
    color: #333;
    border-bottom: 2px solid var(--appagee-primary, #1E3A8A);
    padding-bottom: 10px;
}

.hotel-info {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.hotel-info p {
    margin: 10px 0;
}

/* Room Cards */
.appagee-hotel-rooms {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.appagee-room-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    background: #fff;
}

.room-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 500;
}

.room-status.available {
    background: #d1fae5;
    color: #065f46;
}

.room-status.occupied {
    background: #fee2e2;
    color: #991b1b;
}

.room-status.maintenance {
    background: #fef3c7;
    color: #92400e;
}

.book-room {
    margin-top: 15px;
    padding: 10px 20px;
    background: var(--appagee-primary, #1E3A8A);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}

.book-room:hover {
    background: var(--appagee-secondary, #3B82F6);
}

/* Booking Form */
.appagee-booking-form {
    max-width: 600px;
    margin: 20px 0;
    padding: 30px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.appagee-booking-form h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid var(--appagee-primary, #1E3A8A);
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--appagee-primary, #1E3A8A);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.submit-booking {
    width: 100%;
    padding: 12px;
    background: var(--appagee-primary, #1E3A8A);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.1em;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-booking:hover {
    background: var(--appagee-secondary, #3B82F6);
}

.submit-booking:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.booking-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
}

.booking-message.success {
    background: #d1fae5;
    color: #065f46;
}

.booking-message.error {
    background: #fee2e2;
    color: #991b1b;
}

/* Error Messages */
.appagee-error {
    padding: 20px;
    background: linear-gradient(135deg, #fef2f2 0%, #fff5f5 100%);
    border: 2px solid #fecaca;
    border-left: 5px solid #dc2626;
    border-radius: 8px;
    color: #7f1d1d;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.08);
}

/* System Unavailable Error - Professional Modern styling */
.appagee-error-unavailable {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border: 2px solid #e0e7ff;
    border-left: 5px solid #6366f1;
    color: #1f2937;
    padding: 32px;
    border-radius: 12px;
    margin: 24px 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(99, 102, 241, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.appagee-error-unavailable::before {
    content: '⚙️';
    display: block;
    font-size: 48px;
    margin-bottom: 16px;
    animation: spin-slow 3s linear infinite;
}

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

.appagee-error-unavailable p {
    margin: 0 0 12px 0;
    line-height: 1.6;
    font-size: 15px;
}

.appagee-error-unavailable strong {
    display: block;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1f2937;
    letter-spacing: -0.3px;
}

.appagee-error-unavailable p:last-child {
    margin-bottom: 0;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
}

/* Calendar Placeholder */
.appagee-calendar-placeholder {
    padding: 40px;
    text-align: center;
    background: #f9f9f9;
    border: 2px dashed #ddd;
    border-radius: 8px;
    color: #666;
}
