/* Planning Poker Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: linear-gradient(135deg, #fedf33 0%, #d87301 100%);
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Screen Management */
.screen {
    display: none;
    min-height: 100vh;
}

.screen.active {
    display: block;
}

/* Cards */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card-header {
    padding: 24px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    text-align: center;
}

/* Logo Styling */
.logo-container {
    margin-bottom: 20px;
}

.company-logo {
    width: 400px;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.card-body {
    padding: 24px;
}

.main-card {
    max-width: 400px;
    margin: 50px auto;
}

.title {
    font-size: 28px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 8px;
}

.subtitle {
    color: #64748b;
    font-size: 16px;
}

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

.input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
    transition: border-color 0.3s ease;
}

.input:focus {
    outline: none;
    border-color: #3b82f6;
}

/* Bold red placeholder for name input */
.name-input::placeholder {
    color: #dc2626 !important;
    font-weight: bold !important;
}

.room-input {
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 2px;
}

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

.btn-primary {
    background: #2f4f4f;
    color: white;
    border: 2px solid #2f4f4f;
}

.btn-primary:hover {
    background: #fbb809;
    transform: translateY(-1px);
    
}

.btn-outline {
    background: #2f4f4f;
    color: white;
    border: 2px solid #2f4f4f;
}

.btn-outline:hover {
    background: #fbb809;
    color: white;
    transform: translateY(-1px);
}

.btn-share {
    background: #10b981;
    color: white;
    width: auto;
    margin: 0;
    font-size: 14px;
    padding: 8px 16px;
}

.btn-leave {
    width: auto;
    margin: 0;
    font-size: 14px;
    padding: 8px 16px;
}

.btn-reveal {
    background: #3b82f6;
    color: white;
    font-size: 16px;
    padding: 12px 24px;
    margin-bottom: 8px;
    width: 100%;
}

.btn-reveal:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.btn-clear {
    background: #ef4444;
    color: white;
    font-size: 18px;
    padding: 16px 32px;
}

/* Connection Status */
.connection-status {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: #64748b;
}

/* Room Header */
.room-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%, #f8fafc 100%);
    background-size: 400% 400%;
    animation: marble-shimmer 8s ease-in-out infinite;
    border-radius: 12px;
    padding: 12px 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    position: relative;
    height: 120px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
}

.room-left-section {
    display: flex;
    align-items: center;
    justify-self: start;
}

.room-center-section {
    display: flex;
    justify-content: center;
    align-items: center;
    justify-self: center;
}

.room-right-section {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    justify-self: end;
}

.room-logo-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.room-logo {
    width: 100px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.room-logo-title h1 {
    font-size: 16px;
    color: #000000;
    margin: 0;
    white-space: nowrap;
}

/* Rules Info Button - Image Link Style */
.rules-info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    text-decoration: none;
    vertical-align: middle;
    position: relative;
    top: -2px;
    transition: all 0.3s ease;
    
}

.rules-info-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    
}

.rules-info-btn:hover .rules-info-icon {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.2);
    border: 2px solid #fbbf24;
}

.rules-info-btn:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    border-radius: 50%;
    border: 2px solid #fbbf24;
}

.room-top-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
}

.room-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.room-badge {
    background: #e2e8f0;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
}

/* Room Content */
.room-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.room-left {
    display: flex;
    flex-direction: column;
}

.room-middle {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.room-right {
    display: flex;
    flex-direction: column;
}

/* Ensure left and right columns match the combined height of middle column */
.room-left .players-card {
    height: 700px;
    min-height: 700px;
    max-height: 700px;
}

.room-right .chat-card {
    height: 700px;
    min-height: 700px;
    max-height: 700px;
}

/* Fixed heights for middle column boxes */
.room-middle .points-card {
    height: 400px;
    min-height: 400px;
    max-height: 400px;
}

.room-middle .admin-controls-card {
    height: 80px;
    min-height: 80px;
    max-height: 80px;
}

.room-middle .voting-card {
    height: 280px;
    min-height: 280px;
    max-height: 280px;
}

/* Players */
.players-card {
    display: flex;
    flex-direction: column;
    height: 700px;
    min-height: 700px;
    max-height: 700px;
}

.players-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.players-list {
    flex: 1;
    overflow-y: auto;
}

.player-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 8px;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.player-color-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

/* Remove player button */
.remove-player-btn {
    background: #ef4444;
    color: white;
    border: 1px solid #000000;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 8px;
    transition: all 0.2s ease;
    opacity: 0.8;
    margin-right: 4px;
    padding: 0;
    line-height: 1;
}

.remove-player-btn:hover {
    opacity: 1;
    transform: scale(1.1);
    background: #dc2626;
}

.remove-player-btn i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.player-name {
    font-weight: 600;
    
}

.admin-badge {
    background: #fbbf24;
    color: #92400e;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.player-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vote-badge {
    background: #3b82f6;
    color: white;
    padding: 4px 12px;
    border-radius: 16px;
    font-weight: 600;
    min-width: 40px;
    text-align: center;
}

.status-icon {
    font-size: 18px;
}

.status-voted {
    color: #10b981;
}

.status-waiting {
    color: #f59e0b;
}

/* Progress */
.progress-info {
    margin-top: 12px;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    color: #64748b;
}

.progress-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #1d4ed8 100%);
    transition: width 0.3s ease;
    width: 0%;
}

/* Story Points */
.story-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
    gap: 6px;
}

/* Compact points card in middle column */
.room-middle .points-card .card-header {
    padding: 16px 20px;
}

/* Align header heights for consistency across all cards */
.players-card .card-header,
.chat-card .card-header {
    padding: 16px 20px;
}

.room-middle .points-card .card-body {
    padding: 16px 20px;
}

.room-middle .estimate-header h3 {
    font-size: 16px;
    margin: 0;
}

.room-middle .story-points {
    grid-template-columns: repeat(auto-fit, minmax(35px, 1fr));
    gap: 4px;
}

.point-btn {
    aspect-ratio: 1;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 45px;
}

.room-middle .point-btn {
    font-size: 12px;
    min-height: 35px;
    border-radius: 6px;
}

.room-middle .point-btn.infinity {
    font-size: 18px;
    min-height: 35px;
}

.point-btn:hover {
    border-color: #3b82f6;
    background: #f0f9ff;
    transform: scale(1.05);
}

.point-btn.selected {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    transform: scale(1.1);
}

.point-btn.infinity {
     aspect-ratio: 1;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 8px;
    font-size: 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 45px;
}

.point-btn.infinity:hover {
    border-color: #3b82f6;
    background: #f0f9ff;
    transform: scale(1.05);
}

.point-btn.infinity.selected {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    transform: scale(1.1);
}

/* Voting Status */
.voting-status {
    text-align: center;
    padding: 16px;
    background: #fbb809;
    border-radius: 8px;
    margin-bottom: 16px;
    font-weight: 500;
    color: #000000;
}

.reveal-section {
    text-align: center;
}

/* Votes Revealed */
.votes-revealed {
    text-align: center;
    padding: 10px;
}

.reveal-icon {
    font-size: 32px;
    color: #3b82f6;
    margin-bottom: 12px;
}

.votes-revealed h4 {
    font-size: 18px;
    margin-bottom: 6px;
    color: #1e40af;
}

.votes-revealed p {
    color: #64748b;
    font-size: 14px;
}

/* Vote Results */
.vote-results {
    text-align: center;
    padding: 20px;
    background: #f0f9ff;
    border-radius: 8px;
    margin-bottom: 16px;
}

.vote-summary h4 {
    font-size: 18px;
    color: #2f4f4f;
    margin-bottom: 12px;
}

.average-display {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.average-label {
    font-size: 16px;
    font-weight: 500;
    color: #64748b;
}

.average-value {
    font-size: 24px;
    font-weight: 700;
    background: #2f4f4f;
    color: white;
    border: 2px solid #2f4f4f;
    padding: 8px 16px;
    border-radius: 8px;
    min-width: 60px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
}

.empty-subtitle {
    font-size: 14px;
    margin-top: 8px;
}

/* Points Card (Estimation) */
.points-card {
    display: flex;
    flex-direction: column;
    height: 400px;
    min-height: 400px;
    max-height: 400px;
}

.points-card .card-body {
    flex: 1;
    overflow: visible;
    padding: 16px 20px;
}

/* Remove dynamic sizing when votes are revealed */
.points-card.revealed {
    margin-bottom: 15px;
    height: 400px !important;
    min-height: 400px !important;
    max-height: 400px !important;
}

.points-card.revealed .card-body {
    padding: 16px 20px;
    overflow: visible;
}

/* Voting Card */
.voting-card {
    display: flex;
    flex-direction: column;
    height: 280px;
    min-height: 280px;
    max-height: 280px;
}

.voting-card .card-body {
    flex: 1;
    overflow: visible;
    padding: 12px 16px;
}

/* Chat Styles */
.chat-card {
    display: flex;
    flex-direction: column;
    height: 700px;
    min-height: 700px;
    max-height: 700px;
}

.chat-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
    flex: 1;
    overflow: hidden;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.empty-chat {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}

.empty-chat i {
    font-size: 32px;
    margin-bottom: 12px;
    display: block;
}

.chat-message {
    margin-bottom: 12px;
    padding: 8px 12px;
    border-radius: 12px;
    max-width: 85%;
    word-wrap: break-word;
    animation: fadeInMessage 0.3s ease-out;
}

.chat-message.own {
    background: #3b82f6;
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.chat-message.other {
    background: white;
    color: #1f2937;
    border: 1px solid #e5e7eb;
    border-bottom-left-radius: 4px;
}

.message-header {
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 4px;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 6px;
}

.message-color-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.message-content {
    font-size: 14px;
    line-height: 1.4;
}

.message-time {
    font-size: 10px;
    opacity: 0.6;
    margin-top: 4px;
}

.chat-input-container {
    padding: 16px;
    background: white;
    border-top: 1px solid #e2e8f0;
}

.chat-input-wrapper {
    display: flex;
    gap: 8px;
    align-items: center;
}

.chat-input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

.chat-input:focus {
    border-color: #3b82f6;
}

.btn-send-chat {
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-send-chat:hover {
    background: #2563eb;
    transform: scale(1.05);
}

.btn-send-chat:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
}

@keyframes fadeInMessage {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
/* Large tablets and small desktops */
@media (max-width: 1024px) {
    .container {
        padding: 15px;
    }
    
    .room-content {
        gap: 15px;
    }
    
    .room-middle {
        gap: 15px;
    }
}

/* Medium screens - adjust column proportions */
@media (max-width: 900px) {
    .room-content {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 12px;
    }
    
    .room-middle {
        gap: 12px;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .company-logo {
        width: 280px;
    }
    
    .room-logo {
        width: 80px;
    }
    
    .room-content {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .room-middle {
        gap: 16px;
    }
    
    /* Reset all fixed heights for mobile - make them flexible */
    .room-left .players-card,
    .room-right .chat-card,
    .players-card,
    .chat-card,
    .points-card,
    .voting-card {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
    }
    
    .chat-card {
        height: 500px !important;
        min-height: 500px !important;
        max-height: 500px !important;
    }
    
    .chat-messages {
        max-height: 280px;
    }
    
    /* Reset middle column styling for mobile */
    .room-middle .story-points {
        grid-template-columns: repeat(6, 1fr);
        gap: 6px;
    }
    
    .room-middle .point-btn {
        font-size: 12px;
        min-height: 38px;
    }
    
    .room-info {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .room-top-right {
        align-items: center;
        gap: 8px;
        flex-direction: column;
    }
    
    .room-title {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .room-buttons {
        justify-content: center;
        width: 100%;
        gap: 4px;
    }
    
    .btn-share,
    .btn-leave {
        flex: 1;
        margin: 0 2px;
        font-size: 11px;
        padding: 6px 8px;
    }
    
    .story-points {
        grid-template-columns: repeat(6, 1fr);
        gap: 6px;
    }
    
    .point-btn {
        font-size: 12px;
        min-height: 38px;
    }
    
    .votes-revealed {
        padding: 8px;
    }
    
    .room-logo-title {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }
    
    .room-logo-title h1 {
        font-size: 14px;
    }
    
    .rules-info-icon {
        width: 24px;
        height: 24px;
    }
    
    .rules-info-btn {
        margin-left: 6px;
        top: -1px;
    }
    
    .vote-results {
        padding: 12px;
    }
    
    /* Mobile Room Header Layout - Responsive Grid */
    .room-header {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 8px;
        align-items: center;
        padding: 12px 15px;
        height: auto;
        min-height: auto;
    }
    
    .room-left-section {
        justify-self: center;
        order: 1;
    }
    
    .room-center-section {
        justify-self: center;
        order: 2;
    }
    
    .room-right-section {
        justify-self: center;
        order: 3;
    }
    
    /* Hide "Created by JD" logo on tablets and smaller */
    .created-by-logo {
        display: none !important;
    }
    
    /* Compact music player for mobile */
    .music-player {
        display: flex;
        align-items: center;
        gap: 6px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .music-player .control-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .track-selector {
        font-size: 11px;
        padding: 4px 6px;
        min-width: 70px;
    }
    
    .volume-control {
        display: flex;
        align-items: center;
        gap: 4px;
    }
    
    .volume-icon {
        font-size: 12px;
    }
    
    .volume-slider {
        width: 50px;
    }
    
    /* Compact room badge and buttons */
    .room-badge {
        font-size: 12px;
        padding: 4px 8px;
        margin-bottom: 4px;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .company-logo {
        width: 250px;
    }
    
    .main-card {
        margin: 20px auto;
    }
    
    .room-logo {
        width: 60px;
    }
    
    /* Stack logo and title vertically on phones */
    .room-logo-title {
        flex-direction: column !important;
        text-align: center;
        gap: 4px;
    }
    
    .room-logo-title h1 {
        font-size: 16px;
        white-space: normal;
    }
    
    .rules-info-icon {
        width: 20px;
        height: 20px;
    }
    
    .rules-info-btn {
        margin-left: 4px;
        top: -1px;
    }
    
    .story-points {
        grid-template-columns: repeat(5, 1fr);
        gap: 4px;
    }
    
    .point-btn {
        font-size: 11px;
        min-height: 35px;
    }
    
    .room-badge {
        font-size: 12px;
        padding: 4px 8px;
    }
    
    .btn-share,
    .btn-leave {
        font-size: 10px;
        padding: 4px 6px;
    }
    
    .card-body {
        padding: 16px;
    }
    
    /* Ultra-compact room header for phones */
    .room-header {
        padding: 8px 10px;
        gap: 6px;
        height: auto;
        min-height: auto;
    }
    
    /* Even smaller music player controls */
    .music-player .control-btn {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }
    
    .track-selector {
        font-size: 10px;
        padding: 3px 4px;
        min-width: 60px;
    }
    
    .volume-slider {
        width: 40px;
    }
    
    .volume-icon {
        font-size: 10px;
    }
    
    /* Smaller circular equalizer */
    .circular-equalizer-full {
        width: 80px;
        height: 80px;
    }
    
    .pulse-ring {
        width: 80px;
        height: 80px;
    }
    
    /* More compact room buttons */
    .room-buttons {
        gap: 2px;
    }
    
    .btn-share,
    .btn-leave {
        flex: 1;
        margin: 0;
        white-space: nowrap;
    }
    
    /* Hide DCBI Status container on mobile phones */
    .dcbi-status-container {
        display: none !important;
    }
    
    /* Hide "Created by JD" logo completely on mobile phones */
    .created-by-logo {
        display: none !important;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .company-logo {
        width: 220px;
    }
    
    .story-points {
        grid-template-columns: repeat(4, 1fr);
        gap: 3px;
    }
    
    .point-btn {
        font-size: 10px;
        min-height: 32px;
    }
    
    /* Stack room buttons vertically on very small screens */
    .room-buttons {
        flex-direction: column;
        gap: 3px;
        width: 100%;
    }
    
    .btn-share,
    .btn-leave {
        width: 100%;
        margin: 0;
        font-size: 9px;
        padding: 3px 6px;
    }
    
    /* Ultra-compact header for tiny screens */
    .room-header {
        padding: 6px 8px;
        gap: 4px;
    }
    
    .room-logo {
        width: 50px;
    }
    
    .room-logo-title h1 {
        font-size: 10px;
    }
    
    .rules-info-icon {
        width: 18px;
        height: 18px;
    }
    
    .rules-info-btn {
        margin-left: 3px;
        top: -1px;
    }
    
    /* Tiny music player */
    .music-player .control-btn {
        width: 20px;
        height: 20px;
        font-size: 8px;
    }
    
    .track-selector {
        font-size: 9px;
        padding: 2px 3px;
        min-width: 50px;
    }
    
    .volume-slider {
        width: 30px;
    }
    
    .volume-icon {
        font-size: 8px;
    }
    
    /* Even smaller circular equalizer */
    .circular-equalizer-full {
        width: 60px;
        height: 60px;
    }
    
    .pulse-ring {
        width: 60px;
        height: 60px;
    }
    
    .room-badge {
        font-size: 10px;
        padding: 3px 6px;
    }
    
    /* Hide DCBI Status container on very small screens */
    .dcbi-status-container {
        display: none !important;
    }
    
    /* Hide "Created by JD" logo completely on very small screens */
    .created-by-logo {
        display: none !important;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.5s ease-out;
}

.player-item {
    animation: fadeIn 0.3s ease-out;
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    border-top-color: #3b82f6;
    animation: spin 0.8s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Marble shimmer animation for room header */
@keyframes marble-shimmer {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* DCBI Input Field */
.estimate-header {
    text-align: center;
}

.estimate-header h3 {
    margin-bottom: 12px;
    font-size: 16px;
}

.dcbi-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.dcbi-label {
    font-size: 16px;
    font-weight: bold;
    color: red;
}

.dcbi-input {
    padding: 6px 12px;
    border: 2px solid red;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    color: red;
    text-align: center;
    background: white;
    transition: border-color 0.3s ease;
    min-width: 120px;
    max-width: 150px;
}

.dcbi-input:focus {
    outline: none;
    border-color: red;
}

.dcbi-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.dcbi-go-btn {
    background: #2f4f4f;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 6px 16px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dcbi-go-btn:hover {
    background: #fbb809;
    transform: translateY(-1px);
}

/* DCBI Status Container */
.dcbi-status-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-top: 5px;
    overflow: hidden;
    border: 2px solid #2f4f4f;
    height: 45px;
    min-height: 45px;
    max-height: 45px;
}

.dcbi-status-header {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 8px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    box-sizing: border-box;
}

.dcbi-status-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
}

.close-dcbi-btn {
    display: none;
}

/* Kicked Screen */
.kicked-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: #000;
}

.kicked-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kicked-image {
    width: 50%;
    height: 50%;
    object-fit: contain;
    object-position: center;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.kicked-overlay {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
}

.back-to-join-btn {
    background: #ef4444;
    color: white;
    border: 2px solid #ef4444;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: bold;
    width: auto;
    margin: 0;
}

.back-to-join-btn:hover {
    background: #dc2626;
    border-color: #dc2626;
    transform: translateY(-2px);
}

/* Mobile responsive for kicked screen */
@media (max-width: 768px) {
    .kicked-overlay {
        bottom: 30px;
        padding: 0 20px;
        width: calc(100% - 40px);
    }
    
    .back-to-join-btn {
        width: 100%;
        padding: 14px 24px;
        font-size: 16px;
    }
}

/* Music Player Styles - Centered with Full Equalizer */
.music-player-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
    z-index: 5;
}

.circular-equalizer-full {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.circular-equalizer-full.active {
    opacity: 1;
}

.pulse-ring {
    position: absolute;
    border: 2px solid #3b82f6;
    border-radius: 50%;
    animation: pulse-wave-full 2.5s ease-out infinite;
}

.pulse-ring-1 {
    width: 280px;
    height: 60px;
    animation-delay: 0s;
    border-color: #fbb809;
    border-radius: 30px;
}

.pulse-ring-2 {
    width: 320px;
    height: 70px;
    animation-delay: 0.4s;
    border-color: #3b82f6;
    border-radius: 35px;
}

.pulse-ring-3 {
    width: 360px;
    height: 80px;
    animation-delay: 0.8s;
    border-color: #2f4f4f;
    border-radius: 40px;
}

@keyframes pulse-wave-full {
    0% {
        transform: scale(0.9);
        opacity: 1;
        border-width: 3px;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.6;
        border-width: 2px;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
        border-width: 1px;
    }
}

.music-player {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 10px 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    min-width: 280px;
    height: 50px;
}

.control-btn {
    background: #2f4f4f;
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    position: relative;
    z-index: 10;
    margin: 0 2px;
}

.control-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.play-btn {
    background: #10b981;
}

.play-btn:hover {
    background: #059669;
    transform: scale(1.05);
}

.stop-btn {
    background: #ef4444;
}

.stop-btn:hover {
    background: #dc2626;
    transform: scale(1.05);
}

.control-btn:hover {
    background: #fbb809;
    transform: scale(1.05);
}

.track-selector {
    padding: 6px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: white;
    font-size: 13px;
    font-weight: 500;
    color: #2f4f4f;
    outline: none;
    cursor: pointer;
    min-width: 80px;
}

.track-selector:focus {
    border-color: #2f4f4f;
}

/* Volume Control */
.volume-control {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.8);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.volume-icon {
    color: #2f4f4f;
    font-size: 12px;
}

.volume-slider {
    width: 60px;
    height: 4px;
    border-radius: 2px;
    background: #e2e8f0;
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #2f4f4f;
    cursor: pointer;
    transition: all 0.2s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    background: #fbb809;
    transform: scale(1.1);
}

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #2f4f4f;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.volume-slider::-moz-range-thumb:hover {
    background: #fbb809;
    transform: scale(1.1);
}

#audioPlayer {
    display: none;
}

/* Updated Room Layout */
.room-top-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.room-id-center {
    display: flex;
    justify-content: center;
    width: 100%;
}

.room-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Responsive Music Player */
@media (max-width: 768px) {
    .music-player-wrapper {
        margin: 15px 0;
        height: 70px;
    }
    
    .circular-equalizer-full {
        width: 280px;
        height: 70px;
    }
    
    .pulse-ring-1 {
        width: 240px;
        height: 50px;
        border-radius: 25px;
    }
    
    .pulse-ring-2 {
        width: 280px;
        height: 60px;
        border-radius: 30px;
    }
    
    .pulse-ring-3 {
        width: 320px;
        height: 70px;
        border-radius: 35px;
    }
    
    .music-player {
        min-width: 240px;
        padding: 8px 14px;
        gap: 10px;
        height: 45px;
    }
    
    .control-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .track-selector {
        font-size: 12px;
        padding: 4px 8px;
        min-width: 70px;
    }
    
    .volume-slider {
        width: 50px;
    }
    
    .room-title {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .music-player-wrapper {
        margin: 10px 0;
        height: 60px;
    }
    
    .circular-equalizer-full {
        width: 220px;
        height: 60px;
    }
    
    .pulse-ring-1 {
        width: 200px;
        height: 40px;
        border-radius: 20px;
    }
    
    .pulse-ring-2 {
        width: 220px;
        height: 50px;
        border-radius: 25px;
    }
    
    .pulse-ring-3 {
        width: 240px;
        height: 60px;
        border-radius: 30px;
    }
    
    .music-player {
        min-width: 200px;
        height: 40px;
        gap: 8px;
        padding: 6px 12px;
    }
    
    .control-btn {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }
    
    .track-selector {
        font-size: 11px;
        padding: 3px 6px;
        min-width: 60px;
    }
    
    .volume-control {
        padding: 3px 6px;
    }
    
    .volume-slider {
        width: 40px;
    }
    
    .volume-icon {
        font-size: 10px;
    }
}

/* Created by JD Logo */
.created-by-logo {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.jd-logo {
    width: 60px;
    height: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.jd-logo:hover {
    opacity: 1;
}

/* Admin Controls Styles */
.admin-controls-card {
    display: flex;
    flex-direction: column;
    height: 80px;
    min-height: 80px;
    max-height: 80px;
}

.admin-controls-card .card-header {
    padding: 8px 16px;
}

.admin-controls-card .card-header h3 {
    font-size: 14px;
    margin: 0;
}

.admin-controls-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
}

.admin-buttons {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
}

.admin-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    background: white;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    position: relative;
}

.admin-btn:hover {
    transform: scale(1.05);
    border-color: #3b82f6;
}

.admin-btn.light-btn {
    border-color: #fbbf24;
}

.admin-btn.light-btn:hover {
    border-color: #f59e0b;
}

.admin-btn.light-btn.active {
    background: #fbbf24;
    color: white;
    border-color: #f59e0b;
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.3);
}

.admin-btn.ink-btn {
    border-color: #6366f1;
    color: #6366f1;
}

.admin-btn.ink-btn:hover {
    background: #6366f1;
    color: white;
    border-color: #4f46e5;
}

.admin-btn.ink-btn:active {
    transform: scale(0.95);
    background: #4f46e5;
}

/* Sound Admin Buttons */
.admin-btn.sound-btn {
    border-color: #374151;
    color: #374151;
    position: relative;
    padding: 8px 12px;
    font-size: 14px;
}

.admin-btn.sound-btn:hover {
    background: #374151;
    color: white;
    border-color: #1f2937;
}

.admin-btn.sound-btn:active {
    transform: scale(0.95);
    background: #1f2937;
}

.admin-btn.sound-btn .sound-number {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #374151;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.admin-btn.sound-btn:hover .sound-number {
    background: white;
    color: #374151;
}

/* Light Overlay Effect */
.light-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 3s ease-in-out, visibility 3s ease-in-out;
    pointer-events: none;
}

.light-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Ink Splash Effects */
.ink-splash-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
    overflow: hidden;
}

.ink-splash {
    position: absolute;
    background: radial-gradient(circle, #1e40af 0%, #3b82f6 50%, #60a5fa 70%, transparent 100%);
    border-radius: 50%;
    opacity: 0;
    animation: inkSplashLifecycle 8s ease-out forwards;
    will-change: transform, opacity; /* Optimize for better performance with many elements */
}

@keyframes inkSplashLifecycle {
    0% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    8% {
        opacity: 0.85;
        transform: scale(1.3) rotate(180deg);
    }
    15% {
        opacity: 0.7;
        transform: scale(1) rotate(360deg);
    }
    75% {
        opacity: 0.7;
        transform: scale(1) rotate(360deg);
    }
    100% {
        opacity: 0;
        transform: scale(0.6) rotate(360deg);
    }
}

/* Responsive Admin Controls */
@media (max-width: 768px) {
    .room-middle {
        gap: 16px;
    }
    
    .admin-controls-card,
    .voting-card {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
    }
    
    .admin-controls-card .card-header h3 {
        font-size: 13px;
    }
    
    .admin-btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .admin-buttons {
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .room-middle {
        gap: 16px;
    }
    
    .admin-controls-card .card-header h3 {
        font-size: 12px;
    }
    
    .admin-btn {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }
    
    .admin-buttons {
        gap: 3px;
    }
}