/* Modern Homepage Styles */

/* bagian background */
.modern-hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #4b4ca2 100%);
    overflow: hidden;
}
/* Overlay and background image */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../vendor/technext/vacation-rental/images/bg_1.png') center/cover;
    opacity: 0.6;
}
/* Gradient overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.7) 0%, rgba(69, 6, 245, 0.7) 100%);
}
/* tulisan kelola peminjaman */
.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    padding: 80px 0;
}
/* Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-badge i {
    margin-right: 8px;
    font-size: 16px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}
/* efek gradasi pada teks peminjaman ruangan */
.gradient-text {
    background: linear-gradient(45deg, #010812, #0b0b0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.btn-primary-modern {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

.btn-primary-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.4);
    color: white;
    text-decoration: none;
}

.btn-outline-modern {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.8);
    padding: 13px 30px;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-outline-modern:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
    text-decoration: none;
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.8;
    font-weight: 500;
}

/* Rooms Section */
.modern-rooms-section {
    padding: 100px 0;
    background: #f8fafc;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
}

.section-badge i {
    margin-right: 8px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #718096;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.room-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.room-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.room-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.room-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.room-card:hover .room-image {
    transform: scale(1.05);
}

.room-status-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.status-badge.available {
    background: rgba(34, 197, 94, 0.9);
    color: white;
}

.status-badge.booked {
    background: rgba(239, 68, 68, 0.9);
    color: white;
}

.room-type-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.room-content {
    padding: 25px;
}

.room-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.room-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
}

.room-capacity {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #718096;
    font-size: 14px;
    font-weight: 500;
}

.room-details {
    margin-bottom: 20px;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #718096;
    font-size: 14px;
    line-height: 1.5;
}

.detail-item i {
    margin-top: 2px;
    color: #667eea;
}

.room-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.room-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #718096;
    font-size: 13px;
}

.btn-room-action {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    min-width: 180px;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-room-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    color: white;
    text-decoration: none;
}

/* Bookings Section */
.modern-bookings-section {
    padding: 100px 0;
    background: white;
}

.update-info {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
    font-size: 14px;
    color: #718096;
    flex-wrap: wrap;
}

.update-info i {
    color: #667eea;
}

.bookings-container {
    margin-top: 40px;
}

.bookings-table-wrapper {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.modern-table thead {
    background: linear-gradient(45deg, #2d3748, #4a5568);
    color: white;
}

.modern-table th {
    padding: 20px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.modern-table th:first-child {
    text-align: center;
}

.modern-table tbody tr {
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.modern-table tbody tr:hover {
    background: #f7fafc;
    transform: scale(1.01);
}

.modern-table td {
    padding: 20px 15px;
    vertical-align: middle;
}

.booking-number {
    font-weight: 600;
    color: #667eea;
}

.room-info strong {
    color: #2d3748;
    font-weight: 600;
}

.room-info small {
    color: #718096;
    font-size: 12px;
}

.borrower-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.borrower-info i {
    color: #667eea;
}

.participants-badge {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.status-badge.status-upcoming {
    background: linear-gradient(45deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.status-badge.status-active {
    background: linear-gradient(45deg, #10b981, #059669);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.status-badge.status-completed {
    background: linear-gradient(45deg, #6b7280, #4b5563);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.empty-state {
    padding: 60px 20px;
}

.empty-content {
    text-align: center;
    color: #718096;
}

.empty-content i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #cbd5e0;
}

.empty-content h4 {
    margin-bottom: 10px;
    color: #4a5568;
}

/* Filter styles */
.filters th {
    background-color: #f8f9fa !important;
    padding: 8px !important;
}

.filters input {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    width: 100%;
    transition: all 0.3s ease;
}

.filters input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        gap: 30px;
    }
    
    .rooms-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .room-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .room-footer {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .update-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .modern-table {
        font-size: 12px;
    }
    
    .modern-table th,
    .modern-table td {
        padding: 12px 8px;
    }
    
    .filters input {
        font-size: 11px;
        padding: 6px 8px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.room-card {
    animation: fadeInUp 0.6s ease forwards;
}

.room-card:nth-child(1) { animation-delay: 0.1s; }
.room-card:nth-child(2) { animation-delay: 0.2s; }
.room-card:nth-child(3) { animation-delay: 0.3s; }
