* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #db1e17;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #f9e013;
}

.stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
    gap: 20px;
}

.stat-item {
    background: #f9e013;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
    flex: 1;
}

.stat-item h3 {
    margin-bottom: 10px;
    color: #000000;
    font-size: 14px;
}

.stat-item span {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.user-form {
    background: #f9e013;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.user-form h2 {
    margin-bottom: 15px;
    color: #333;
}

.user-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.user-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.user-form button {
    padding: 12px 24px;
    margin-right: 10px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: inline-block;
}

#join-btn {
    background-color: #db1e17;
    color: white;
}

#join-btn:hover:not(:disabled) {
    background-color: #c01a15;
}

#leave-btn {
    background-color: #db1e17;
    color: white;
}

#leave-btn:hover:not(:disabled) {
    background-color: #c01a15;
}

button:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

.current-queue {
    background: #f9e013;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.current-queue h2 {
    margin-bottom: 15px;
    color: #333;
}

.queue-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.queue-item:last-child {
    border-bottom: none;
}

.queue-item-name {
    font-weight: bold;
    color: #333;
}

.queue-item-info {
    color: #db1e17;
    font-size: 14px;
}

.wait-history {
    background: #f9e013;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 30px;
}

.wait-history h2 {
    margin-bottom: 15px;
    color: #333;
}

.history-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-item:last-child {
    border-bottom: none;
}

.history-item-name {
    font-weight: bold;
    color: #333;
}

.history-item-info {
    color: #db1e17;
    font-size: 14px;
}

.history-item-time {
    color: #db1e17;
    font-weight: bold;
}

.wait-graph {
    background: #f9e013;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 30px;
}

.wait-graph h2 {
    margin-bottom: 15px;
    color: #333;
}

#graph-container {
    position: relative;
    height: 200px;
    border-bottom: 2px solid #db1e17;
    border-left: 2px solid #db1e17;
    margin: 20px 0;
}

#graph-bars {
    position: relative;
    height: 100%;
    padding: 10px;
}

.graph-line {
    position: absolute;
    width: 100%;
    height: 100%;
}

.graph-line svg {
    width: 100%;
    height: 100%;
}

.graph-point {
    fill: #db1e17;
    stroke: #db1e17;
    stroke-width: 2;
    r: 4;
    cursor: pointer;
}

.graph-point:hover {
    fill: #c01a15;
    stroke: #c01a15;
    r: 6;
}

.graph-line-path {
    fill: none;
    stroke: #db1e17;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#graph-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 12px;
    color: #333;
}

.graph-label {
    font-weight: bold;
}

.graph-empty {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px 0;
}
