/*
Theme Name: Central Bookings Theme
Theme URI: https://central-bookings.local
Description: Custom theme za Central Booking Hub sistem
Version: 1.0.0
Author: System Admin
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
    --primary-color: #2196f3;
    --primary-dark: #1976d2;
    --secondary-color: #f44336;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --text-color: #333;
    --border-color: #ddd;
    --bg-color: #f5f5f5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-color);
    background: var(--bg-color);
    line-height: 1.6;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ===== LAYOUT ===== */

#page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#masthead {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#masthead h1 {
    margin: 0;
    font-size: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#masthead a {
    color: white;
}

.logout-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 12px;
    border: 1px solid white;
    cursor: pointer;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: rgba(255,255,255,0.3);
    text-decoration: none;
}

#content {
    flex: 1;
    padding: 30px 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

#footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    font-size: 12px;
}

/* ===== LOGIN PAGE ===== */

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px;
}

.login-box h1 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.login-box p {
    color: #666;
    font-size: 14px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(33, 150, 243, 0.4);
}

.error-message {
    background: #fee;
    color: #c00;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 4px solid #c00;
    font-size: 14px;
}

/* ===== BOOKINGS TABLE ===== */

.bookings-wrapper {
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.bookings-header {
    margin-bottom: 20px;
}

.bookings-header h2 {
    margin-bottom: 15px;
    font-size: 20px;
}

.filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 500;
    margin-bottom: 5px;
    font-size: 13px;
}

.filter-group input,
.filter-group select {
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 13px;
}

.filter-buttons {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: #f0f0f0;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.btn-export {
    background: var(--success-color);
    color: white;
}

.btn-export:hover {
    background: #45a049;
}

.stats {
    background: #e8f5e9;
    padding: 10px 15px;
    border-radius: 5px;
    border-left: 4px solid var(--success-color);
    margin-bottom: 20px;
    font-size: 13px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 13px;
}

table thead {
    background: #f5f5f5;
}

table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
    vertical-align: middle;
}

table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
}

table tbody tr:hover {
    background: #f9f9f9;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    color: white;
}

.badge-pending {
    background: var(--warning-color);
}

.badge-confirmed {
    background: var(--success-color);
}

.badge-completed {
    background: var(--primary-color);
}

.badge-cancelled {
    background: var(--secondary-color);
}

.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}

/* ===== PAGINATION ===== */

.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.page-link {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--primary-color);
    transition: all 0.3s;
}

.page-link:hover {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
}

.page-current {
    padding: 8px 12px;
    background: var(--primary-color);
    color: white;
    border-radius: 5px;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
    #masthead h1 {
        flex-direction: column;
        gap: 10px;
    }
    
    .filters {
        grid-template-columns: 1fr;
    }
    
    table {
        font-size: 12px;
    }
    
    table th,
    table td {
        padding: 8px;
    }
    
    #content {
        padding: 15px 10px;
    }
}
