/* Modern, Clean CSS - No Animations, No Funky Colors */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-600: #4b5563;
    --gray-800: #1f2937;
    --white: #ffffff;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.5;
}

/* Header & Footer */
.header-container {
    background: var(--white);
    padding: 1rem 2rem;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--gray-800);
    font-weight: 600;
}

.powered-by small {
    color: var(--gray-600);
}

.powered-by a {
    color: var(--primary);
    text-decoration: none;
}

.footer-container {
    background: var(--white);
    padding: 1.5rem;
    text-align: center;
    border-top: 1px solid var(--gray-200);
    margin-top: 2rem;
}

.footer-content p {
    color: var(--gray-600);
    font-size: 0.875rem;
}

/* Main Container */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

/* Company Portal Layout */
.portal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .portal-grid {
        grid-template-columns: 1fr;
    }
}

/* Company Details */
.company-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.company-icon {
    width: 64px;
    height: 64px;
    background: var(--gray-100);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.info-item i {
    width: 20px;
    color: var(--gray-600);
    margin-top: 0.25rem;
}

/* QR Code */
.qr-container {
    background: var(--gray-50);
    padding: 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    margin-top: 1rem;
}

.qr-placeholder {
    width: 200px;
    height: 200px;
    background: var(--white);
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius);
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--gray-600);
}

/* Slots Grid */
.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.slot-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.slot-card:hover {
    border-color: var(--primary);
    background: var(--gray-50);
}

.slot-time {
    font-weight: 600;
    color: var(--gray-800);
}

.slot-capacity {
    font-size: 0.75rem;
    color: var(--gray-600);
    margin-top: 0.25rem;
}

.slot-full {
    opacity: 0.6;
    cursor: not-allowed;
    background: var(--gray-100);
}

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--gray-700);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-success {
    background: var(--success);
    color: var(--white);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

/* Tables */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: var(--gray-100);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--gray-700);
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

/* Status Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-confirmed {
    background: #dbeafe;
    color: var(--primary-dark);
}

.badge-cancelled {
    background: #fee2e2;
    color: var(--danger);
}

/* Alert Messages */
.alert {
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
}

/* Confirmation Page */
.confirmation-card {
    max-width: 600px;
    margin: 2rem auto;
    text-align: center;
}

.confirmation-icon {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: 1rem;
}

.booking-details {
    background: var(--gray-50);
    padding: 2rem;
    border-radius: var(--radius);
    text-align: left;
    margin: 2rem 0;
}

.print-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: var(--shadow);
}

@media print {
    .no-print {
        display: none !important;
    }
}

/* Login Pages */
.login-container {
    max-width: 400px;
    margin: 4rem auto;
}

/* Responsive */
@media (max-width: 640px) {
    .header-container {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .slots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .btn {
        width: 100%;
    }
}