/* Base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1, h2, h3 {
    margin-bottom: 20px;
    color: #2c3e50;
}

/* Button styles */
.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #2980b9;
}

.button.primary {
    background-color: #3498db;
}

.button.primary:hover {
    background-color: #2980b9;
}

.button.secondary {
    background-color: #7f8c8d;
}

.button.secondary:hover {
    background-color: #6c7a7d;
}

.button.success {
    background-color: #2ecc71;
}

.button.success:hover {
    background-color: #27ae60;
}

.button.warning {
    background-color: #e74c3c;
}

.button.warning:hover {
    background-color: #c0392b;
}

.button.large {
    font-size: 20px;
    padding: 15px 30px;
}

/* Counter selection styles */
.counter-selection {
    text-align: center;
    padding: 40px 0;
}

.counter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.counter-button {
    display: block;
    padding: 30px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s, background-color 0.3s;
}

.counter-button:hover {
    background-color: #2980b9;
    transform: translateY(-5px);
}

.counter-number {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 10px;
}

.counter-name {
    font-size: 18px;
}

/* Teller interface styles */
.teller-interface {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: #2c3e50;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.counter-info h1 {
    margin-bottom: 5px;
    color: white;
}

.counter-info h2 {
    font-weight: normal;
    margin-bottom: 0;
    color: #ecf0f1;
}

.main-content {
    display: flex;
    flex: 1;
    padding: 20px;
    gap: 20px;
}

.current-ticket-panel {
    flex: 1;
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.waiting-tickets-panel {
    flex: 1;
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-height: calc(100vh - 180px);
    overflow-y: auto;
}

/* Filter form styling */
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.filter-form {
    display: flex;
    align-items: center;
}

.service-type-filter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-type-filter select {
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.filter-indicator {
    font-size: 14px;
    color: #7f8c8d;
    margin-left: 5px;
    font-style: italic;
}

.ticket {
    display: flex;
    padding: 15px;
    border-radius: 6px;
    background-color: #f9f9f9;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ticket.active {
    background-color: #e3f2fd;
    border-left: 5px solid #3498db;
}

.ticket.priority {
    background-color: #fff8e1;
    border-left: 5px solid #f39c12;
}

.ticket-number {
    font-size: 24px;
    font-weight: bold;
    margin-right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    background-color: #3498db;
    color: white;
    border-radius: 4px;
}

.ticket.priority .ticket-number {
    background-color: #f39c12;
}

.ticket-details {
    flex: 1;
}

.service-type {
    font-weight: bold;
    margin-bottom: 5px;
}

.wait-time {
    color: #7f8c8d;
    font-size: 14px;
}

.priority {
    color: #f39c12;
    font-weight: bold;
    margin-top: 5px;
}

.status {
    display: inline-block;
    padding: 3px 8px;
    background-color: #3498db;
    color: white;
    border-radius: 4px;
    font-size: 12px;
    margin-top: 5px;
}

.ticket-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
}

.no-ticket, .no-tickets {
    text-align: center;
    padding: 40px 0;
    color: #7f8c8d;
}

.service-type-selector {
    margin-bottom: 20px;
}

.service-type-selector select {
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
    width: 100%;
    font-size: 16px;
}

footer {
    background-color: #ecf0f1;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #ddd;
}

.queue-stats {
    display: flex;
    gap: 20px;
}

.stat {
    display: flex;
    align-items: center;
}

.stat .label {
    margin-right: 5px;
    font-weight: bold;
}

.stat .value {
    background-color: #3498db;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: bold;
}

.timestamp {
    color: #7f8c8d;
    font-size: 14px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }

    .counter-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* Flash Messages */
.flash-messages {
    max-width: 800px;
    margin: 0 auto 20px;
}

.flash-message {
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 10px;
    font-weight: bold;
}

.flash-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flash-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.flash-message.warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.flash-message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}
