/* ==========================================
   ARTA TRANS TOUR & TRAVEL PANGANDARAN
   Tema Glassmorphism dengan Warna Lavender
   ========================================== */

/* CSS Variables untuk Tema Glassmorphism */
:root {
    /* Warna Dasar Lavender */
    --lavender-light: #E6E6FA;
    --lavender: #C8A2C8;
    --lavender-dark: #967BB6;
    --lavender-darker: #6B5B95;
    
    /* Warna Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: rgba(0, 0, 0, 0.1);
    
    /* Warna Teks */
    --text-primary: #2D2D2D;
    --text-secondary: #5A5A5A;
    --text-light: #FFFFFF;
    
    /* Warna Aksen */
    --accent: #9B59B6;
    --accent-hover: #8E44AD;
    --success: #27AE60;
    --warning: #F39C12;
    --danger: #E74C3C;
    --info: #3498DB;
    
    /* Ukuran */
    --sidebar-width: 280px;
    --header-height: 70px;
    --border-radius: 16px;
    
    /* Transisi */
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #E6E6FA 0%, #C8A2C8 50%, #967BB6 100%);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Glassmorphism Classes */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px var(--glass-shadow);
}

.glass-dark {
    background: rgba(107, 91, 149, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.glass-card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.glass-input {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition);
    width: 100%;
}

.glass-input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.35);
    box-shadow: 0 0 0 3px rgba(155, 89, 182, 0.2);
}

.glass-input::placeholder {
    color: var(--text-secondary);
}

.glass-btn {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: var(--text-light);
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(155, 89, 182, 0.3);
}

.glass-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(155, 89, 182, 0.4);
}

.glass-btn:active {
    transform: translateY(0);
}

.glass-btn-outline {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.glass-btn-outline:hover {
    background: var(--accent);
    color: var(--text-light);
}

/* Layout */
.wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    padding: 20px;
    transition: var(--transition);
    overflow-y: auto;
}

.sidebar.closed {
    transform: translateX(-100%);
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
}

.sidebar-logo {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.sidebar-title {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.sidebar-nav {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 8px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 12px;
    transition: var(--transition);
    font-size: 14px;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: rgba(155, 89, 182, 0.2);
    color: var(--accent-hover);
}

.sidebar-nav i {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    transition: var(--transition);
    padding: 20px;
}

.main-content.expanded {
    margin-left: 0;
}

/* Header */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 20px;
    gap: 20px;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-primary);
    transition: var(--transition);
}

.hamburger:hover {
    color: var(--accent);
}

.header-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}
/* Search Form */
.search-form {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.search-wrapper {
    display: flex;
    align-items: center;
    position: relative;
}

.search-input {
    padding-right: 90px;
    min-width: 250px;
}

.search-btn {
    position: absolute;
    right: 10px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.search-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 10px rgba(155, 89, 182, 0.4);
}

.search-clear {
    position: absolute;
    right: 50px;
    background: rgba(231, 76, 60, 0.2);
    color: #E74C3C;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 12px;
}

.search-clear:hover {
    background: #E74C3C;
    color: white;
}
/* Hero Section */
.hero {
    padding: 60px 40px;
    text-align: center;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.hero p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 40px;
}

.cards-grid.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.cards-grid.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.cards-grid.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.cards-grid.grid-6 {
    grid-template-columns: repeat(6, 1fr);
}

/* Destination Card */
.destination-card {
    overflow: hidden;
}

.destination-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

.destination-content {
    padding: 20px;
}

.destination-category {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 10px;
}

.destination-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.destination-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.destination-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 15px;
}

.destination-duration {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

/* Stats Cards */
.stat-card {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.stat-icon.primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: white;
}

.stat-icon.success {
    background: linear-gradient(135deg, #27AE60 0%, #219A52 100%);
    color: white;
}

.stat-icon.warning {
    background: linear-gradient(135deg, #F39C12 0%, #E67E22 100%);
    color: white;
}

.stat-icon.danger {
    background: linear-gradient(135deg, #E74C3C 0%, #C0392B 100%);
    color: white;
}

.stat-info h3 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.stat-info p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Table */
.table-container {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.table th {
    font-weight: 700;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

.table tr:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Status Badges */
.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background: rgba(39, 174, 96, 0.2);
    color: #27AE60;
}

.badge-warning {
    background: rgba(243, 156, 18, 0.2);
    color: #F39C12;
}

.badge-danger {
    background: rgba(231, 76, 60, 0.2);
    color: #E74C3C;
}

.badge-info {
    background: rgba(52, 152, 219, 0.2);
    color: #3498DB;
}

/* Form */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    width: 100%;
    max-width: 500px;
    padding: 30px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--danger);
}

/* Pagination */
.pagination {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    justify-content: center;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
}

.pagination a:hover,
.pagination span.active {
    background: var(--accent);
    color: white;
}

/* Bottom Navigation (Mobile) */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 20px;
}

.bottom-nav-items {
    display: flex;
    justify-content: space-around;
    list-style: none;
}

.bottom-nav-items li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 11px;
    transition: var(--transition);
}

.bottom-nav-items li a:hover,
.bottom-nav-items li a.active {
    color: var(--accent);
}

.bottom-nav-items li a i {
    font-size: 20px;
}

/* Action Buttons */
.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}

.action-btn-edit {
    background: rgba(52, 152, 219, 0.2);
    color: #3498DB;
}

.action-btn-edit:hover {
    background: #3498DB;
    color: white;
}

.action-btn-delete {
    background: rgba(231, 76, 60, 0.2);
    color: #E74C3C;
}

.action-btn-delete:hover {
    background: #E74C3C;
    color: white;
}

.action-btn-duplicate {
    background: rgba(39, 174, 96, 0.2);
    color: #27AE60;
}

.action-btn-duplicate:hover {
    background: #27AE60;
    color: white;
}

.action-btn-view {
    background: rgba(155, 89, 182, 0.2);
    color: #9B59B6;
}

.action-btn-view:hover {
    background: #9B59B6;
    color: white;
}

/* Section */
.section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.filter-tabs::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.filter-tab {
    padding: 10px 20px;
    border-radius: 25px;
    border: 2px solid var(--accent);
    background: transparent;
    color: var(--accent);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.filter-tab:hover,
.filter-tab.active {
    background: var(--accent);
    color: white;
}

/* Alert */
.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success {
    background: rgba(39, 174, 96, 0.2);
    color: #27AE60;
    border: 1px solid rgba(39, 174, 96, 0.3);
}

.alert-danger {
    background: rgba(231, 76, 60, 0.2);
    color: #E74C3C;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.alert-warning {
    background: rgba(243, 156, 18, 0.2);
    color: #F39C12;
    border: 1px solid rgba(243, 156, 18, 0.3);
}

.alert-info {
    background: rgba(52, 152, 219, 0.2);
    color: #3498DB;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.empty-state-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.empty-state-desc {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px;
    margin-top: 40px;
    color: var(--text-secondary);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .cards-grid.grid-6 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero h1 {
        font-size: 40px;
    }
    
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding-bottom: 80px;
    }
    
    .hamburger {
        display: block;
    }
    
    .bottom-nav {
        display: block;
    }
    
    .search-input {
        min-width: 200px;
    }
}
/* Mobile (< 768px) */
@media (max-width: 768px) {
    .cards-grid.grid-6,
    .cards-grid.grid-4,
    .cards-grid.grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero {
        padding: 40px 20px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .header {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .header-title {
        font-size: 22px;
    }
    
    .header-actions {
        width: 100%;
        order: 3;
        justify-content: space-between;
    }
    
    .search-form {
        flex: 1;
        margin-bottom: 30px;
    }
    
    .search-input {
        min-width: 100%;
    }
    
    .main-content {
        padding: 15px;
    }
    
    .destination-image {
        height: 140px;
    }
    
    .destination-content {
        padding: 15px;
    }
    
    .destination-title {
        font-size: 16px;
    }
    
    .destination-price {
        font-size: 18px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .stat-info h3 {
        font-size: 24px;
    }
    
    .table th,
    .table td {
        padding: 12px 8px;
        font-size: 13px;
    }
    
    .modal-content {
        padding: 20px;
    }
    
    .modal-title {
        font-size: 20px;
    }
    
    .filter-tabs {
        gap: 8px;
        margin-top: 30px;
    }
    
    .filter-tab {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* Extra Small Mobile (< 480px) */
@media (max-width: 480px) {
    .cards-grid.grid-2 {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .glass-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .search-wrapper {
        width: 100%;
    }
    
    .search-input {
        padding-right: 80px;
        font-size: 13px;
    }
    
    .search-btn {
        width: 28px;
        height: 28px;
        right: 8px;
    }
    
    .search-clear {
        width: 24px;
        height: 24px;
        right: 42px;
    }
}
