/* Base styles */
:root {
    --primary-color: #1a73e8;
    --secondary-color: #f8f9fa;
    --text-color: #202124;
    --border-radius: 8px;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background: var(--secondary-color);
    color: var(--text-color);
}

/* Header styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo-icon {
    font-size: 1.6rem;
    color: var(--primary-color);
    animation: roll 8s infinite;
}

.lol-text {
    color: #ff6b6b;
    font-weight: 600;
    font-size: 0.9em;
}

@keyframes roll {
    0%, 85% { transform: rotate(0deg); }
    90% { transform: rotate(180deg); }
    95% { transform: rotate(360deg); }
    100% { transform: rotate(360deg); }
}

/* Main content layout */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Game table styles */
.poker-table {
    position: relative;
    width: 600px;
    height: 600px;
    margin: 20px auto;
}

.table-position {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Player card styles */
.player-card {
    background: white;
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.player-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

/* Responsive design */
@media (max-width: 768px) {
    .header {
        padding: 12px 15px;
    }

    .main-container {
        padding: 1rem;
    }

    .poker-table {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .table-center {
        width: 120px;
        height: 120px;
    }

    .action-text {
        font-size: 0.9em;
    }

    .player-card {
        padding: 0.75rem;
    }

    .user-menu {
        gap: 6px;
    }
    
    .connected-users {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
    
    .primary-button span {
        display: none;  /* Hide "Start new game" text on small screens */
    }
    
    .primary-button .dice-icon {
        margin: 0;  /* Remove margin when text is hidden */
    }
    
    .logo span {
        font-size: 1.2rem;  /* Reduce logo text size */
    }
}

/* For very small screens */
@media (max-width: 480px) {
    .connected-users {
        padding: 3px 6px;
    }
    
    .connected-users span {
        margin: 0 2px;
    }
}

/* Landing page styles */
.landing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.hero-section {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 1rem;
    padding: 0 1rem;
}

.hero-section h1 {
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.2;
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.hero-section h1 .dice-float {
    font-size: 3rem;
    color: #1a73e8;
    animation: float 3s ease-in-out infinite;
}

.hero-highlight {
    color: #3b82f6;
    position: relative;
    display: inline-block;
}

.hero-emoji {
    font-size: 3rem;
    display: inline-block;
    animation: float 2s ease-in-out infinite;
    margin-left: 0.5rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #64748b;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    margin: 0.5rem 0;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.start-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 180px;
    justify-content: center;
}

.primary-button {
    background: linear-gradient(135deg, #1a73e8 0%, #4285f4 100%);
    color: white;
    box-shadow: 0 4px 6px rgba(26, 115, 232, 0.2);
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(26, 115, 232, 0.25);
}

.secondary-button {
    background: white;
    color: #1a73e8;
    border: 2px solid #1a73e8;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.secondary-button:hover {
    transform: translateY(-2px);
    background: #f8faff;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.08);
}

.start-button:hover .dice-icon {
    animation: rollDice 0.6s ease infinite;
}

.start-button:hover .fa-door-open {
    transform: translateX(4px);
}

.dice-icon {
    font-size: 1.2rem;
    display: inline-block;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0) rotate(0deg); 
    }
    50% { 
        transform: translateY(-10px) rotate(10deg); 
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section h1 .dice-float {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }

    .start-button {
        width: 100%;
        min-width: unset;
    }

    .feature-highlights {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .hero-emoji {
        font-size: 2rem;
    }
}

.trusted-section {
    margin: 6rem 0;
}

.trusted-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
}

.company-logos {
    display: flex;
    align-items: center;
    gap: 5rem;
    flex-wrap: wrap;
}

.company-logo {
    height: 3rem;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.company-logo:hover {
    opacity: 0.7;
}

.preview-section {
    margin-top: 4rem;
    display: flex;
    justify-content: flex-end;
}

.app-preview {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

/* User menu */
.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Toast notifications */
.toast {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 1.1em;
    z-index: 1000;
    transition: top 0.3s ease-in-out;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    text-align: center;
    max-width: 80%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.toast.show {
    top: 20px;
}

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

.section {
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.hidden {
    display: none;
}

.voting-cards {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 2rem;
}

.voting-card {
    width: 40px;
    height: 60px;
    border: 1px solid #4285f4;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    background: white;
    transition: all 0.2s ease;
}

.voting-card:hover {
    border-color: #3367d6;
    transform: translateY(-2px);
}

.voting-card.selected {
    background: #4285f4;
    color: white;
}

.controls {
    margin-top: 20px;
}

#users-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.user-card {
    position: absolute;
    width: 100px;
    padding: 12px;
    background: white;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform-origin: center;
    z-index: 1;
    cursor: pointer;
    transition: box-shadow 0.2s ease;
}

.user-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.user-name {
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-vote {
    font-size: 1.2rem;
    color: #4285f4;
}

.vote-placeholder {
    font-size: 24px;
    font-weight: bold;
    color: #3b82f6;
    margin-top: 8px;
}

.share-link {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 10px 0;
}

.feeling-lonely {
    color: #6c757d;
    font-size: 0.9em;
    font-style: italic;
}

.room-info h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

#copy-button {
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    margin-left: 8px;
    height: 24px;
}

#copy-button:hover {
    background: #0056b3;
}

#copy-button.copied {
    background: #28a745;
}

@keyframes copyAnimation {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.copy-animation {
    animation: copyAnimation 0.3s ease;
}

.room-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

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

.story-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.current-story {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.timer-section {
    text-align: center;
    margin: 20px 0;
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#timer-display {
    font-size: 3rem;
    font-weight: 600;
    color: #4285f4;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.countdown-number {
    position: absolute;
    width: 100%;
    text-align: center;
    animation: slideDown 0.9s ease-out;
    transform-origin: center;
    font-size: 4em;
    font-weight: bold;
}

@keyframes countdownSlide {
    0% {
        transform: translateY(-100%) scale(0.5);
        opacity: 0;
    }
    15% {
        transform: translateY(0) scale(1.2);
        opacity: 1;
    }
    75% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(100%) scale(0.5);
        opacity: 0;
    }
}

.action-text {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
    line-height: 1.2;
    font-size: 1.1rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.action-text[data-action="start"] {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.action-text[data-action="start"] span {
    font-size: 1.1rem;
    line-height: 1.2;
}

.action-text[data-action="reveal"] {
    font-size: 1.1rem;
}

.start-text {
    line-height: 1.2;
    font-size: 0.9em;
}

#start-voting-btn {
    background: #28a745;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

#start-voting-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

#start-voting-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

button[onclick="resetVoting"] {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 0.9em;
    cursor: pointer;
    padding: 5px 10px;
    transition: all 0.2s ease;
    text-decoration: underline;
    opacity: 0.8;
}

button[onclick="resetVoting"]:hover {
    opacity: 1;
    text-decoration: none;
}

.timer-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.voting-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
    padding: 10px;
    background: #e9ecef;
    border-radius: 8px;
}

.stat-item {
    font-weight: bold;
}

#consensus-indicator {
    color: #28a745;
}

.card {
    width: 50px;
    height: 75px;
    border: 2px solid #007bff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card.selected {
    background: #007bff;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.history-section {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 500px;
}

.modal-content input,
.modal-content textarea {
    width: 100%;
    margin-bottom: 10px;
    padding: 8px;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.user-card {
    position: relative;
    padding: 15px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    text-align: center;
    background: white;
}

.user-card .role-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #28a745;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
}

.hidden {
    display: none !important;
}

.ranking-section {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.ranking-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin: 5px 0;
    background: white;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.rank-1 {
    background: linear-gradient(to right, #ffd700, #fff);
}

.rank-2 {
    background: linear-gradient(to right, #c0c0c0, #fff);
}

.rank-3 {
    background: linear-gradient(to right, #cd7f32, #fff);
}

.ranking-position {
    font-weight: bold;
    color: #007bff;
}

.ranking-points {
    font-weight: bold;
    color: #28a745;
}

.ranking-item.inactive {
    opacity: 0.6;
}

.ranking-item.inactive .ranking-name {
    font-style: italic;
}

.table-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    cursor: pointer;
    z-index: 2;
}

.table-controls {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.table-users {
    position: absolute;
    width: 100%;
    height: 100%;
}

.user-card {
    position: absolute;
    width: 80px;
    padding: 8px;
    background: white;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translate(-50%, -50%);
}

.user-card img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-bottom: 5px;
}

.vote-placeholder {
    font-size: 24px;
    font-weight: bold;
    color: #007bff;
    margin-top: 5px;
}

#timer-display {
    font-size: 2em;
    margin-bottom: 10px;
}

#start-voting-btn, 
button[onclick="resetVoting"] {
    padding: 8px 16px;
    font-size: 1em;
}

.voting-stats {
    padding: 10px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.main-content {
    display: flex;
    gap: 20px;
    height: calc(100vh - 150px);
}

.rankings-sidebar,
.current-round-sidebar {
    width: 250px;
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    overflow-y: auto;
    flex-shrink: 0;
}

.game-area {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.current-stats {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.current-round-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    margin: 8px 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

.current-round-item:hover {
    transform: translateX(5px);
}

.current-round-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.current-round-user .name {
    font-weight: 500;
}

.current-round-user .vote {
    color: #007bff;
    font-weight: 600;
}

.points {
    font-weight: 600;
    color: #6c757d;
}

.points-earned {
    color: #28a745;
}

.no-votes {
    text-align: center;
    color: #6c757d;
    padding: 20px;
    font-style: italic;
}

.stat-box {
    background: white;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    min-width: 0;
}

.stat-label {
    font-size: 0.8em;
    color: #6c757d;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 1.2em;
    font-weight: 600;
    color: #007bff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#main-action-btn {
    background: #007bff;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
    text-align: center;
}

#main-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

#main-action-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Base font settings */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 20px;
    background: #f8f9fa;
}

/* Update rankings with icons */
.rankings-sidebar h3,
.current-round-sidebar h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2em;
    margin-bottom: 15px;
}

.rankings-sidebar h3:before {
    content: '\f521'; /* Trophy icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #ffd700;
}

.current-round-sidebar h3:before {
    content: '\f201'; /* Chart icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #007bff;
}

.ranking-position {
    display: flex;
    align-items: center;
    gap: 5px;
}

.rank-1 .ranking-position:before {
    content: '\f521'; /* Trophy */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #ffd700;
}

.rank-2 .ranking-position:before {
    content: '\f521';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #c0c0c0;
}

.rank-3 .ranking-position:before {
    content: '\f521';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #cd7f32;
}

.ranking-points:before {
    content: '\f005'; /* Star */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #28a745;
    margin-right: 5px;
}

.action-text:before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.action-text[data-action="start"]:before {
    content: '\f144'; /* Play icon */
}

.action-text[data-action="reveal"]:before {
    content: '\f06e'; /* Eye icon */
}

.current-round-item .vote:before {
    content: '\f0a3'; /* Certificate */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 5px;
    color: #007bff;
}

.toast {
    animation: slideOut 0.3s ease forwards;
}

.toast.show {
    animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(-50%) translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    to {
        transform: translateX(-50%) translateY(-100%);
        opacity: 0;
    }
}

/* Create Room Form Styles */
#create-room-form {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

#create-room-form h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #1e293b;
    text-align: center;
}

.create-room-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.form-section {
    padding: 20px;
}

.form-section h3 {
    font-size: 1.2rem;
    color: #4b5563;
    margin-bottom: 15px;
}

.password-section {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

.password-section label {
    display: block;
    margin-bottom: 8px;
    color: #64748b;
    font-size: 0.9rem;
}

#room-password {
    width: 80%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    margin-bottom: 8px;
    margin-left: auto;
    margin-right: auto;
}

#room-password:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.password-hint {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 6px;
}

.create-room-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: center;
}

.create-room-actions button {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.create-button {
    background: #3b82f6;
    color: white;
    border: none;
    min-width: 160px;
}

.create-button:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.back-button {
    background: transparent;
    border: 2px solid #e2e8f0;
    color: #64748b;
}

.back-button:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    color: #4b5563;
}

.features-list li i {
    color: #3b82f6;
    font-size: 1.2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .create-room-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    #create-room-form {
        padding: 20px;
        margin: 20px;
    }
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Join Room Form Styles */
#join-form {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

#join-form h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #1e293b;
    text-align: center;
}

.join-room-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.join-form-section {
    padding: 20px;
}

.join-form-section h3 {
    font-size: 1.2rem;
    color: #4b5563;
    margin-bottom: 15px;
}

.join-input-group {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.join-input-group label {
    display: block;
    margin-bottom: 8px;
    color: #64748b;
    font-size: 0.9rem;
}

#room-id,
#join-password {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    margin-bottom: 8px;
}

#room-id:focus,
#join-password:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input-hint {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 6px;
}

.join-room-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: center;
}

.join-room-actions button {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.join-button {
    background: #3b82f6;
    color: white;
    border: none;
    min-width: 160px;
}

.join-button:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.join-features-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.join-features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    color: #4b5563;
}

.join-features-list li i {
    color: #3b82f6;
    font-size: 1.2rem;
}

/* Name Form Styles */
#name-form {
    max-width: 440px;
    margin: 40px auto;
    text-align: center;
}

.name-form-container {
    background: white;
    padding: 60px 40px;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    max-width: 480px;
    margin: 0 auto;
}

.avatar-section {
    margin-bottom: 32px;
}

.avatar-preview {
    width: 64px;
    height: 64px;
    background: #f3f4ff;
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-preview i {
    font-size: 32px;
    color: #4f46e5;
}

#name-form h2 {
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 12px;
    font-weight: 600;
}

.name-subtitle {
    color: #64748b;
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.name-input-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
}

#user-name {
    width: 100%;
    padding: 16px 24px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    background: #f8fafc;
    box-sizing: border-box;
}

#user-name:focus {
    border-color: #4f46e5;
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    background: white;
}

#user-name::placeholder {
    color: #94a3b8;
}

.join-game-button {
    background: #4f46e5;
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.join-game-button:hover {
    background: #4338ca;
    transform: translateY(-2px);
}

/* Update mobile responsiveness */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    
    .rankings-sidebar,
    .current-round-sidebar {
        width: 100%;
        max-height: 200px;
    }
    
    .poker-table {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
        max-width: 500px;
        margin: 20px auto;
    }
    
    .user-card {
        width: 60px;
        font-size: 0.8em;
    }
    
    .voting-cards {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .card {
        width: 40px;
        height: 60px;
        font-size: 1em;
    }
}

/* Update toast styles */
.toast {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 1.1em;
    z-index: 1000;
    transition: top 0.3s ease-in-out;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    text-align: center;
    max-width: 80%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.toast.show {
    top: 20px;
}

@keyframes slideIn {
    from {
        transform: translateX(-50%) translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    to {
        transform: translateX(-50%) translateY(-100%);
        opacity: 0;
    }
}

.toast {
    animation: slideOut 0.3s ease forwards;
}

.toast.show {
    animation: slideIn 0.3s ease forwards;
}

/* Update join room form styles for mobile */
@media (max-width: 768px) {
    #join-form {
        margin: 20px;
        padding: 20px;
    }

    .join-room-container {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .join-form-section {
        width: 100%;
    }

    .join-input-group {
        margin-bottom: 15px;
    }

    .join-input-group input {
        width: 100%;
        box-sizing: border-box;
    }

    .join-room-actions {
        flex-direction: column;
        gap: 10px;
    }

    .join-room-actions button {
        width: 100%;
    }

    .join-features-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .join-features-list li {
        font-size: 0.9rem;
        padding: 8px;
    }

    .join-features-list li i {
        font-size: 1rem;
    }
}

/* Additional mobile optimizations for very small screens */
@media (max-width: 480px) {
    #join-form h2 {
        font-size: 1.8rem;
    }

    .join-features-list {
        grid-template-columns: 1fr;
    }

    .join-input-group label {
        font-size: 0.9rem;
    }

    .input-hint {
        font-size: 0.8rem;
    }
}

/* Feature highlights improvements */
.feature-highlights {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

.feature {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.08);
}

.feature i {
    font-size: 2rem;
    color: #1a73e8;
    margin-bottom: 1rem;
}

.feature h2 {
    font-size: 1.25rem;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.feature p {
    color: #64748b;
    line-height: 1.6;
}

/* SEO text styling - visually hidden but readable by search engines */
.seo-title, .seo-description {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Keep the floating animation only for the hero dice */
.dice-float {
    width: 48px;
    height: 48px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0) rotate(0deg); 
    }
    50% { 
        transform: translateY(-10px) rotate(10deg); 
    }
}

.seo-content {
    margin: 0.25rem 0;
    text-align: center;
}

.seo-content h2 {
    font-size: 2rem;
    color: #1e293b;
    margin-bottom: 1rem;
    font-weight: 700;
}

.seo-content p {
    font-size: 1.25rem;
    color: #64748b;
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .seo-content h2 {
        font-size: 1.5rem;
        padding: 0 1rem;
    }
    
    .seo-content p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
}

/* Playful button icon animations */
.dice-icon, .fa-door-open {
    transition: transform 0.3s ease;
}

.start-button:hover .dice-icon {
    animation: rollDice 0.6s ease infinite;
}

.start-button:hover .fa-door-open {
    transform: translateX(4px);
}

@keyframes rollDice {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
    100% { transform: rotate(360deg); }
}

/* Company Submission Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
}

.submit-company-btn {
    margin-top: 2rem;
    padding: 0.75rem 1.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.submit-company-btn:hover {
    background: #f1f5f9;
    color: #475569;
}

/* Admin Dashboard Styles */
.admin-dashboard {
    padding: 2rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.dashboard-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.submission-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.submission-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.submission-actions {
    margin-left: auto;
}

.connected-users {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 5px 10px;
    background-color: rgba(66, 133, 244, 0.1);
    border-radius: 20px;
    margin-right: 10px;
}

.connected-users i {
    color: var(--primary-color);
}

#connected-users-count {
    font-weight: 600;
    color: var(--primary-color);
}