.sticker-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    backdrop-filter: blur(5px);
    padding: 20px;
    box-sizing: border-box;
}

.sticker-popup-content {
    max-width: 500px;
    max-height: 70vh;
    width: 95%;
    display: flex;
    flex-direction: column;
}

.sticker-popup-surface {
    background: #1a1a1a;
    border: 1px solid #333;
    box-shadow: 0 12px 32px rgba(0,0,0,0.5);
}

.sticker-popup-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 3;
    margin-top: 0;
    padding-top: 0;
}

.sticker-popup-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sticker-login-text {
    color: #ffeb3b;
    font-family: 'Comic Sans MS', Arial, Helvetica, sans-serif;
    font-size: 14px;
    text-align: center;
    margin: 0;
    padding: 0;
}

.header-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 10;
}

.sticker-popup-header-top h3 {
    margin: 0;
    color: white;
    text-shadow: 0 2px 5px rgba(0,0,0,0.28);
    font-weight: bold;
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 3;
}

.close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 0;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    position: relative;
    z-index: 10;
}

.close-btn::before {
    content: '\f00d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 16px;
}

.close-btn:hover {
    background: rgba(255, 68, 68, 0.3);
    border-color: rgba(255, 68, 68, 0.5);
    transform: scale(1.1);
}

.disable-all-btn {
    background: #ff6b6b;
    border: none;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Comic Sans MS', Arial, Helvetica, sans-serif;
    font-size: 12px;
    transition: background-color 0.2s;
}

.disable-all-btn:hover {
    background: #ff5252;
}

.reset-btn {
    background: #4CAF50;
    border: none;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Comic Sans MS', Arial, Helvetica, sans-serif;
    font-size: 12px;
    transition: background-color 0.2s;
}

.reset-btn:hover {
    background: #45a049;
}

.login-box {
    background: #1a1a1a;
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
    border: 2px solid #333;
    max-width: 500px;
    width: 95%;
}

.login-box p {
    color: #ffeb3b;
    font-family: 'Comic Sans MS', Arial, Helvetica, sans-serif;
    font-size: 14px;
    text-align: center;
    margin: 0;
}

.sticker-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    flex: 1;
    overflow-y: auto;
    padding-right: 5px;
    min-height: 0;
    max-width: 100%;
}

.sticker-pack-title {
    grid-column: 1 / -1;
    color: #fff;
    font-family: 'Comic Sans MS', Arial, Helvetica, sans-serif;
    font-size: 14px;
    margin: 6px 0 2px 0;
    padding: 6px 8px;
    background: #1f1f1f;
    border: 1px solid #444;
    border-radius: 6px;
}

.sticker-grid::-webkit-scrollbar {
    width: 8px;
}

.sticker-grid::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 4px;
}

.sticker-grid::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

.sticker-grid::-webkit-scrollbar-thumb:hover {
    background: #777;
}

.sticker-item {
    background: #3a3a3a;
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.sticker-item:hover:not(.locked) {
    background: #4a4a4a;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.sticker-item.enabled {
    border-color: #4CAF50;
    background: #2a4a2a;
}

.sticker-item.enabled:hover {
    background: #3a5a3a;
    box-shadow: 0 3px 10px rgba(76, 175, 80, 0.3);
}

.sticker-item.locked {
    background: #2a2a2a;
    cursor: not-allowed;
    opacity: 0.6;
}

.sticker-preview {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 0;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.sticker-name {
    color: #fff;
    font-family: 'Comic Sans MS', Arial, Helvetica, sans-serif;
    font-size: 10px;
    text-align: center;
    line-height: 1.2;
    word-break: break-word;
    overflow: hidden;
    padding-bottom: 2px;
}

.lock-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: #888;
}

.more-stickers-item {
    border: 2px dashed #666 !important;
    background: #2a2a2a !important;
}

.sticker-silhouette {
    position: relative;
}

.silhouette {
    filter: brightness(0) opacity(0.3);
}

.screen-sticker {
    position: fixed !important;
    cursor: move;
    z-index: 2050 !important;
    user-select: none;
    pointer-events: auto;
    transition: transform 0.1s ease, opacity 0.2s;
    transform-origin: center;
    margin: 0 !important;
    padding: 0 !important;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.screen-sticker:hover {
    z-index: 2051 !important;
}

.screen-sticker:active {
    cursor: grabbing;
}

.screen-sticker.dragging {
    filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.5));
}

.sticker-box {
    cursor: pointer;
    transition: transform 0.2s ease;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    position: relative;
    z-index: 2002;
}

.sticker-box:hover {
    transform: scale(1.05);
}

.sticker-box:active {
    transform: scale(0.95);
}

@media (max-width: 800px) {
    .screen-sticker {
        display: none !important;
    }
    
    .corkboard-panel {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .sticker-popup > div {
        width: 95%;
        max-height: 70vh;
        padding: 15px;
    }
    
    .sticker-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
        max-height: 300px;
    }
    
    .sticker-item {
        padding: 8px;
        min-height: 100px;
    }
    
    .sticker-preview {
        width: 65px;
        height: 65px;
        border-radius: 0;
    }
    
    .sticker-name {
        font-size: 11px;
    }
    
    .sticker-popup-header-top h3 {
        font-size: 20px;
    }
} 