/* assets/css/style.css - Premium Design System */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --bg-main: #f8fafc;
    --bg-surface: rgba(255, 255, 255, 0.85);
    --bg-surface-solid: #ffffff;
    --border-color: rgba(0, 0, 0, 0.08);
    --border-glow: rgba(121, 181, 28, 0.25);
    
    --primary: #79b51c;
    --primary-hover: #609016;
    --primary-glow: rgba(121, 181, 28, 0.3);
    
    --accent: #2c3e50;
    --accent-hover: #1a252f;
    --accent-glow: rgba(44, 62, 80, 0.2);
    
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-inverse: #ffffff;
    
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.1);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.1);
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.1);
    --info: #3b82f6;
    --info-bg: rgba(59, 130, 246, 0.1);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    --shadow-glow: 0 0 15px rgba(121, 181, 28, 0.15);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(121, 181, 28, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(44, 62, 80, 0.03) 0%, transparent 45%);
    background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent);
}

/* Glassmorphism Panel */
.glass-panel {
    background: var(--bg-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.glass-panel:hover {
    border-color: rgba(121, 181, 28, 0.2);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

/* Layout Elements */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo svg {
    stroke: var(--primary);
    fill: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-item {
    font-weight: 500;
    color: var(--text-muted);
}

.nav-item:hover, .nav-item.active {
    color: var(--text-main);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #609016 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(121, 181, 28, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #609016 0%, #466c10 100%);
    box-shadow: 0 6px 20px rgba(121, 181, 28, 0.3);
    transform: translateY(-2px);
    color: white;
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent) 0%, #1a252f 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.15);
}

.btn-accent:hover {
    background: linear-gradient(135deg, #1a252f 0%, #0d1217 100%);
    box-shadow: 0 6px 20px rgba(44, 62, 80, 0.25);
    transform: translateY(-2px);
    color: white;
}

.btn-secondary {
    background: rgba(0, 0, 0, 0.03);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.12);
}

.btn-danger {
    background: var(--danger-bg);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
    background: var(--danger);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: var(--radius-sm);
}

/* Hero Section */
.hero {
    padding: 80px 0 60px 0;
    text-align: center;
    position: relative;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(circle, rgba(121, 181, 28, 0.08) 0%, transparent 70%);
    filter: blur(50px);
    z-index: -1;
    pointer-events: none;
}

.hero h1 {
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--accent) 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.15;
}

.hero p {
    font-size: 20px;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 32px auto;
    font-weight: 400;
}

/* Sections */
.section {
    padding: 60px 0;
}

.section-title {
    font-size: 32px;
    margin-bottom: 12px;
    text-align: center;
    position: relative;
    font-weight: 700;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Grid & Cards */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 900px) {
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.feature-card {
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.feature-img-wrapper {
    width: 100%;
    height: 240px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.feature-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.feature-card:hover .feature-img {
    transform: scale(1.05);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary);
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
}

.feature-title {
    font-size: 22px;
    margin-bottom: 12px;
}

.feature-desc {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 20px;
}

/* Booking Widget Panel */
.booking-container {
    margin-top: -20px;
    margin-bottom: 60px;
    z-index: 10;
    position: relative;
}

.booking-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 24px;
    align-items: flex-end;
}

.form-group {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-control {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 15px;
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(121, 181, 28, 0.15);
    background: #ffffff;
}

.form-control option {
    background: var(--bg-surface-solid);
    color: var(--text-main);
}

.booking-panel .btn {
    height: 48px;
    margin-bottom: 2px;
}

/* Interactive Availability Calendar */
.calendar-card {
    padding: 30px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    text-align: center;
}

.calendar-day-name {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-muted);
    padding: 8px 0;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: #ffffff;
    font-size: 14px;
    font-weight: 500;
    cursor: default;
    position: relative;
    transition: var(--transition);
}

.calendar-day.empty {
    border: none;
    background: transparent;
}

.calendar-day.today {
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 700;
}

.calendar-day.available {
    background: rgba(16, 185, 129, 0.05);
}

.calendar-day.limited {
    background: rgba(245, 158, 11, 0.05);
}

.calendar-day.booked {
    background: rgba(239, 68, 68, 0.05);
    color: rgba(0, 0, 0, 0.35);
    text-decoration: line-through;
}

.calendar-day-capacity {
    font-size: 9px;
    margin-top: 2px;
    padding: 2px 4px;
    border-radius: 4px;
    font-weight: 600;
}

.calendar-day.available .calendar-day-capacity {
    background: var(--success-bg);
    color: #10b981;
}

.calendar-day.limited .calendar-day-capacity {
    background: var(--warning-bg);
    color: #d97706;
}

.calendar-day.booked .calendar-day-capacity {
    background: var(--danger-bg);
    color: #ef4444;
}

.calendar-legend {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    justify-content: center;
    font-size: 13px;
    color: var(--text-muted);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

/* General Layout Alerts */
.alert {
    padding: 16px 24px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid transparent;
}

.alert-success {
    background: var(--success-bg);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.2);
}

.alert-danger {
    background: var(--danger-bg);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.2);
}

.alert-warning {
    background: var(--warning-bg);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.2);
}

.alert-info {
    background: var(--info-bg);
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.2);
}

/* User & Login Pages */
.auth-container {
    max-width: 450px;
    margin: 80px auto;
    padding: 40px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    font-size: 28px;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 15px;
}

/* Dashboards & Portals */
.dashboard-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    margin: 40px 0;
}

@media (max-width: 990px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: var(--text-muted);
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: var(--transition);
}

.sidebar-link svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.sidebar-link:hover, .sidebar-link.active {
    background: rgba(121, 181, 28, 0.08);
    color: var(--primary);
    border-left: 3px solid var(--primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* Modern Status Badge */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.badge-pending { background: var(--warning-bg); color: #d97706; }
.badge-approved { background: var(--info-bg); color: #2563eb; }
.badge-signed { background: rgba(121, 181, 28, 0.1); color: #609016; }
.badge-paid { background: var(--success-bg); color: #059669; }
.badge-rejected { background: var(--danger-bg); color: #dc2626; }

/* Interactive Table Styling */
.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.custom-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    text-align: left;
}

.custom-table th {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.custom-table td {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-color);
    font-size: 15px;
    color: var(--text-main);
    vertical-align: middle;
}

.custom-table tr:last-child td {
    border-bottom: none;
}

.custom-table tr:hover td {
    background: rgba(0, 0, 0, 0.015);
}

/* Digital Contract Signature Board */
.contract-view {
    padding: 30px;
    margin-bottom: 30px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    max-height: 400px;
    overflow-y: auto;
}

.contract-text {
    font-family: var(--font-body);
    font-size: 14px;
    white-space: pre-wrap;
    color: var(--text-main);
}

.signature-container {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.signature-canvas-wrapper {
    background: #ffffff;
    border: 2px dashed rgba(121, 181, 28, 0.4);
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 500px;
    height: 200px;
    position: relative;
    cursor: crosshair;
}

.signature-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.signature-actions {
    display: flex;
    gap: 12px;
}

/* Payment Modules */
.payment-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 24px 0;
}

@media (max-width: 768px) {
    .payment-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.payment-method {
    padding: 24px 16px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #ffffff;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.payment-method:hover {
    border-color: var(--primary);
    background: rgba(121, 181, 28, 0.05);
    transform: translateY(-2px);
}

.payment-method.active {
    border-color: var(--primary);
    background: rgba(121, 181, 28, 0.08);
    box-shadow: 0 0 15px rgba(121, 181, 28, 0.1);
}

.payment-icon {
    font-size: 28px;
    color: var(--text-muted);
}

.payment-method.active .payment-icon {
    color: var(--primary);
}

.payment-title {
    font-size: 14px;
    font-weight: 600;
}

/* Simulated Payment Overlay */
.payment-loading {
    display: none;
    text-align: center;
    padding: 40px;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(121, 181, 28, 0.1);
    border-left-color: var(--primary);
    border-radius: 50%;
    margin: 0 auto 20px auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Room Code Card (Glowing) */
.room-code-card {
    background: linear-gradient(135deg, #ffffff 0%, rgba(121, 181, 28, 0.08) 100%);
    border: 1px solid rgba(121, 181, 28, 0.2);
    padding: 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md), 0 0 25px rgba(121, 181, 28, 0.15);
    position: relative;
    overflow: hidden;
}

.room-code-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.room-code-value {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--primary);
    text-shadow: 0 0 10px rgba(121, 181, 28, 0.3);
    margin: 20px 0;
}

/* Admin Custom Tabs */
.tabs-header {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
    gap: 8px;
}

.tab-btn {
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--text-main);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Footer Section */
footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    margin-top: 80px;
    background: #ffffff;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* Form Styling - Extra Layouts */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
}

.image-preview {
    width: 100%;
    max-width: 300px;
    height: 160px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    margin-top: 10px;
    overflow: hidden;
    position: relative;
    background: rgba(0,0,0,0.05);
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.price-tag {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-heading);
}

/* Booking Details Grid */
.detail-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .detail-list {
        grid-template-columns: 1fr;
    }
}

.detail-item {
    padding: 16px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.detail-label {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.detail-value {
    font-size: 16px;
    font-weight: 600;
}
