/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

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

/* Header */
.header {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.room-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.room-name {
    font-size: 18px;
    font-weight: 600;
    color: #555;
}

.btn-leave {
    padding: 8px 16px;
    background: #e53e3e;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-leave:hover {
    background: #c53030;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(229, 62, 62, 0.3);
}

/* Home Page */
.home-container {
    background: white;
    border-radius: 12px;
    padding: 40px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.welcome-section {
    text-align: center;
    margin-bottom: 40px;
}

.welcome-section h2 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 32px;
}

.welcome-section p {
    color: #666;
    font-size: 18px;
}

/* Forms */
.form-container {
    margin-bottom: 30px;
}

.form-container h3 {
    color: #444;
    margin-bottom: 20px;
    font-size: 20px;
}

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

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

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
    cursor: pointer;
}

.checkbox-group label {
    margin: 0;
    cursor: pointer;
    color: #555;
    font-weight: 500;
    user-select: none;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

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

.btn-primary:hover {
    background: #5a67d8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}ß

.btn-secondary {
    background: #48bb78;
    color: white;
}

.btn-secondary:hover {
    background: #38a169;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.4);
}

.btn-reveal {
    background: #f6ad55;
    color: white;
}

.btn-reveal:hover {
    background: #ed8936;
}

.btn-disabled {
    background: #F5F5F5;
    color: #333333;
}

.btn-reset {
    background: #48bb78;
    color: white;
}

.btn-reset:hover {
    background: #38a169;
}

/* Divider */
.divider {
    text-align: center;
    margin: 30px 0;
    color: #999;
    font-weight: 600;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: #e0e0e0;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

/* Join Page */
.join-container {
    background: white;
    border-radius: 12px;
    padding: 40px;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.join-container h2 {
    color: #667eea;
    margin-bottom: 20px;
}

.room-id-display {
    background: #f7fafc;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 30px;
    font-size: 16px;
}

.room-id-display strong {
    color: #667eea;
    font-family: monospace;
    font-size: 18px;
}

/* Room Page */
.room-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    margin-top: 30px;
}

/* Users Section */
.users-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.users-section h3 {
    color: #444;
    margin-bottom: 20px;
    font-size: 20px;
}

.users-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.user-card {
    background: #f7fafc;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.user-card:hover {
    background: #edf2f7;
}

.user-name {
    font-weight: 600;
    color: #333;
}

.user-vote {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px solid #e0e0e0;
    font-weight: 600;
}

.user-vote.voted {
    background: #48bb78;
    color: white;
    border-color: #48bb78;
}

.user-vote.revealed {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.vote-indicator {
    font-size: 18px;
}

.vote-value {
    font-size: 16px;
}

/* Votes Section */
.votes-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.votes-container {
    margin-bottom: 30px;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul li {
  position: relative;
  padding-left: 1.5em;
  margin: 0.4em 0;
  font-size: 1rem;
  line-height: 1.5;
}

ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #4A90E2;
  font-weight: bold;
  font-size: 1.2em;
  line-height: 1;
  top: 0.1em;
}

/* Cards Section */
.cards-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cards-section h3 {
    color: #444;
    margin-bottom: 20px;
    font-size: 20px;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.card {
    background: white;
    border: 3px solid #667eea;
    color: #667eea;
    padding: 20px;
    border-radius: 12px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card:hover {
    background: #667eea;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.card.selected {
    background: #6bbde0;
    color: white;
}

.card.special-card {
    border-color: #f6ad55;
    color: #f6ad55;
}

.card.special-card:hover {
    background: #f6ad55;
    color: white;
    box-shadow: 0 6px 20px rgba(246, 173, 85, 0.4);
}

.card.special-card.selected {
    background: #f6ad55;
    color: white;
}

/* Controls */
.controls {
    display: flex;
    gap: 15px;
}

.controls .btn {
    flex: 1;
}

/* Revealed Message */
.revealed-message {
    text-align: center;
    padding: 40px;
    background: #f7fafc;
    border-radius: 12px;
}

.revealed-message p {
    color: #666;
    font-size: 18px;
}

/* Access Check Page */
.access-check-container {
    background: white;
    border-radius: 12px;
    padding: 40px;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.access-check-container h2 {
    color: #667eea;
    margin-bottom: 20px;
}

#access-message {
    font-size: 18px;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .room-container {
        grid-template-columns: 1fr;
    }
    
    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .cards-container {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    }
    
    .card {
        padding: 15px;
        font-size: 18px;
        min-height: 60px;
    }
}