:root {
    --primary-color: #0d6efd;
    --bg-color: #000;
    --text-color: #333;
    --modal-bg: rgba(255, 255, 255, 0.95);
    --glass-bg: rgba(255, 255, 255, 0.2);
    --glass-border: rgba(255, 255, 255, 0.3);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-color);
}

#kiosk-container {
    width: 1920px;
    height: 1080px;
    position: relative;
    transform-origin: top left;
}

#hotspots-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

.hotspot {
    position: absolute;
    cursor: pointer;
    transition: all 0.2s ease;
}
.hotspot:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Edit mode styles */
.hotspot.edit-mode {
    border: 2px dashed rgba(255, 255, 255, 0.8);
    background-color: rgba(0, 150, 255, 0.3);
}
.hotspot.edit-mode:hover {
    background-color: rgba(0, 150, 255, 0.5);
}
.hotspot .delete-btn {
    display: none;
    position: absolute;
    top: -10px;
    right: -10px;
    background: red;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-weight: bold;
}
.hotspot.edit-mode .delete-btn {
    display: block;
}

/* Drawing rectangle */
#drawing-rect {
    position: absolute;
    border: 2px solid #0d6efd;
    background-color: rgba(13, 110, 253, 0.3);
    pointer-events: none;
    z-index: 20;
}

/* Admin Panel */
#admin-panel {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 15px;
    border-radius: 12px;
    color: white;
    z-index: 100;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

#admin-panel h3 { margin-bottom: 10px; }
#admin-panel button {
    display: block;
    width: 100%;
    margin-bottom: 8px;
    padding: 8px;
    border: none;
    border-radius: 6px;
    background: #fff;
    color: #000;
    cursor: pointer;
    font-weight: 600;
}
#admin-panel button:hover { background: #eee; }

.hidden { display: none !important; }

/* Modal / Popup */
#popup-overlay, #admin-modal, #link-target-modal, #login-modal, #select-edit-item-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    opacity: 1;
    transition: opacity 0.3s ease;
}

#popup-overlay.hidden, #admin-modal.hidden, #link-target-modal.hidden, #login-modal.hidden, #select-edit-item-modal.hidden {
    opacity: 0;
    pointer-events: none;
}

#popup-modal {
    background: var(--modal-bg);
    border-radius: 16px;
    padding: 40px;
    width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-modal-content {
    background: var(--modal-bg);
    border-radius: 4px;
    border: 1px solid #ccc;
    padding: 24px;
    width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

#popup-close, #admin-modal-close, #login-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
}

#popup-title {
    font-size: 32px;
    margin-bottom: 20px;
    color: #111;
}

#popup-content {
    display: flex;
    gap: 30px;
}

#popup-text {
    flex: 1;
    font-size: 18px;
    line-height: 1.6;
    color: #444;
}

#popup-images {
    width: 350px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#popup-images img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

#popup-qr {
    margin-top: 30px;
    text-align: center;
}

#popup-qr img {
    width: 150px;
    height: 150px;
    border-radius: 8px;
}

#popup-qr p { margin-top: 10px; font-weight: 600; color: #555; }

/* Forms */
form { display: flex; flex-direction: column; gap: 15px; }
label { font-weight: 600; color: #333; }
input[type="text"], textarea, select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}
form button {
    padding: 10px 20px;
    background: #0d6efd;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}
.admin-modal-content button:hover {
    background: #0b5ed7;
}

#login-form input {
    display: block;
    width: 100%;
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
}
#login-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}
