/**
 * CharterBus PHP - Main Stylesheet
 */

/* Custom CSS Variables */
:root {
    --primary-color: #00d1b2;
    --primary-dark: #00c4a7;
    --secondary-color: #3273dc;
    --success-color: #48c774;
    --warning-color: #ffdd57;
    --danger-color: #f14668;
    --dark-color: #363636;
    --light-color: #f5f5f5;
    --text-color: #4a4a4a;
    --border-color: #dbdbdb;
    --shadow: 0 2px 3px rgba(10, 10, 10, 0.1);
    --shadow-hover: 0 5px 15px rgba(10, 10, 10, 0.2);
}

/* Base Styles */
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

/* Navigation */
.navbar {
    background-color: white;
    box-shadow: var(--shadow);
    padding: 1rem 0;
}

.navbar-item {
    font-weight: 500;
}

.navbar-item:hover {
    background-color: var(--light-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.1)" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero .title {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero .subtitle {
    color: rgba(255, 255, 255, 0.9);
}

/* Buttons */
.button {
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.button.is-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.button.is-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* Cards */
.card {
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* Login Page */
.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.login-page .card {
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Forms */
.input, .textarea {
    border-radius: 8px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.input:focus, .textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.125em rgba(0, 209, 178, 0.25);
}

/* Notifications */
.notification {
    border-radius: 8px;
    margin-bottom: 1rem;
}

.notification .delete {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Dashboard Styles */
.dashboard-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.dashboard-card {
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.dashboard-stat {
    text-align: center;
    padding: 1.5rem;
}

.dashboard-stat .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.dashboard-stat .title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.dashboard-stat .subtitle {
    font-size: 1rem;
    opacity: 0.8;
}

/* Tables */
.table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table thead th {
    background-color: var(--light-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

.table tbody tr:hover {
    background-color: rgba(0, 209, 178, 0.05);
}

/* Status Badges */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background-color: rgba(255, 193, 7, 0.2);
    color: #856404;
}

.status-confirmed {
    background-color: rgba(40, 167, 69, 0.2);
    color: #155724;
}

.status-in-progress {
    background-color: rgba(0, 123, 255, 0.2);
    color: #004085;
}

.status-completed {
    background-color: rgba(40, 167, 69, 0.2);
    color: #155724;
}

.status-cancelled {
    background-color: rgba(220, 53, 69, 0.2);
    color: #721c24;
}

/* Booking Form */
.booking-form {
    background-color: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 2rem;
}

.booking-step {
    display: none;
}

.booking-step.active {
    display: block;
}

.booking-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero .title {
        font-size: 2rem;
    }
    
    .hero .subtitle {
        font-size: 1.1rem;
    }
    
    .dashboard-stat .title {
        font-size: 2rem;
    }
    
    .navbar-menu {
        background-color: white;
        box-shadow: var(--shadow);
    }
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in-left {
    animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

.slide-in-right {
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Utility Classes */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.border-radius {
    border-radius: 12px;
}

.shadow-custom {
    box-shadow: var(--shadow);
}

.shadow-hover {
    box-shadow: var(--shadow-hover);
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .button,
    .booking-navigation {
        display: none !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}
