/* Tournament Hotel Booking System - Main Stylesheet */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

/* Dashboard Layout */
.dashboard { max-width: 1200px; margin: 0 auto; padding: 20px; }

.header {
    background: white;
    padding: 25px 30px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 { color: #667eea; font-size: 28px; margin-bottom: 0; }

.content-box {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Buttons */
.btn, .btn-primary, .btn-success, .btn-small {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn { background: #e9ecef; color: #333; }
.btn:hover { background: #d3d9df; }

.btn-primary { background: #667eea; color: white; }
.btn-primary:hover { background: #5568d3; }

.btn-success { background: #28a745; color: white; }
.btn-success:hover { background: #218838; }

.btn-small { padding: 6px 12px; font-size: 12px; }

.logout-btn {
    background: #dc3545;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
}
.logout-btn:hover { background: #c82333; }

/* Forms */
.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.form-group textarea { resize: vertical; font-family: inherit; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-inline {
    display: flex;
    gap: 10px;
    align-items: center;
}

.short-select { width: 150px; }
.short-input { width: 120px; }

.form-actions {
    margin-top: 30px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.form-help {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

/* Wizard Progress */
.wizard-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.wizard-progress .step {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    color: #999;
    background: #f5f5f5;
}

.wizard-progress .step.active {
    background: #667eea;
    color: white;
    font-weight: 600;
}

.wizard-progress .step.completed {
    background: #28a745;
    color: white;
}

/* Alerts */
.alert {
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }

/* Two Column Layout */
.two-column-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 20px 0;
}

.form-section, .list-section {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.form-section h3, .list-section h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
}

/* Hotel/Room Lists */
.hotel-list { display: flex; flex-direction: column; gap: 10px; }

.hotel-card {
    background: white;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.hotel-card strong { color: #333; font-size: 16px; }
.text-small { font-size: 12px; color: #666; margin-top: 5px; }

.badge {
    display: inline-block;
    padding: 3px 8px;
    background: #667eea;
    color: white;
    border-radius: 4px;
    font-size: 11px;
    margin-left: 8px;
}

/* Tables */
.simple-table, .compact-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.simple-table th, .simple-table td,
.compact-table th, .compact-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.simple-table th, .compact-table th {
    background: #f5f5f5;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    color: #666;
}

.compact-table { font-size: 13px; }

/* Info & Stats */
.info-box {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 15px;
    border-radius: 4px;
    font-size: 14px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.stat-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #667eea;
}

.stat-label {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}

/* Tournament View */
.tournament-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.status-planning { background: #fff3cd; color: #856404; }
.status-active { background: #d4edda; color: #155724; }
.status-completed { background: #d1ecf1; color: #0c5460; }

.section-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 30px 0;
}

.config-section { margin: 20px 0; }

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-title h3 {
    font-size: 20px;
    color: #333;
}

.section-header h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 5px;
}

.hotel-details {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.hotel-details h4 {
    color: #667eea;
    font-size: 18px;
    margin-bottom: 10px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.commission-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.commission-category h4 {
    color: #667eea;
    margin-bottom: 10px;
}

.commission-category p {
    margin-bottom: 8px;
    font-size: 14px;
}

.commission-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.commission-row label {
    font-weight: 500;
    color: #555;
}

/* Quick Links */
.quick-links { margin-top: 30px; }
.link-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.link-card {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    border: 1px solid #e0e0e0;
    transition: all 0.2s;
}

.link-card:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.link-card strong {
    display: block;
    margin-bottom: 5px;
}

.link-card span {
    font-size: 12px;
    opacity: 0.8;
}

/* Report Tables */
.simple-table tbody tr:hover {
    background: #f8f9fa;
}

.simple-table td {
    white-space: nowrap;
}

.simple-table tfoot tr {
    background: #667eea !important;
    color: white;
    font-weight: 600;
}

.simple-table tfoot td {
    border-top: 2px solid #667eea;
    padding: 15px 10px;
}

.simple-table .text-right,
.simple-table td:nth-child(n+7) {
    text-align: right;
}

/* Data Table - Better for wide tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.data-table th {
    background: #667eea;
    color: white;
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    white-space: nowrap;
}

.data-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
    white-space: nowrap;
}

.data-table tbody tr:hover {
    background: #f8f9fa;
}

.data-table tfoot tr {
    background: #f8f9fa;
    font-weight: 700;
    border-top: 2px solid #667eea;
}

.data-table tfoot td {
    white-space: nowrap;
}

/* Utilities */
.text-muted { color: #999; }
.text-center { text-align: center; }
.text-right { text-align: right; }
