* {
    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, #10b981 0%, #059669 100%);
    min-height: 100vh;
    padding: 20px;
}

.hidden {
    display: none !important;
}

/* ===== LOADING PAGE ===== */
.loading-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-page.active {
    opacity: 1;
    visibility: visible;
}

.loading-container {
    background: white;
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 100%;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #f0f0f0;
    border-top: 5px solid #667eea;
    border-radius: 50%;
    margin: 0 auto 30px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.loading-subtext {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.loading-timer {
    font-size: 18px;
    font-weight: 600;
    color: #667eea;
    padding: 15px;
    background: #f0f4ff;
    border-radius: 10px;
}

/* ===== MAIN PAGE ===== */
.container {
    display: flex;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.left-section {
    flex: 2;
    min-width: 300px;
}

.right-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
    min-width: 300px;
}

/* Header Navigation */
.header {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 30px;
}

.btn-text {
    background: #1abc9c;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s;
}

.btn-text:hover {
    background: #16a085;
}

.nav-items {
    display: flex;
    gap: 40px;
    margin-left: 30px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    font-size: 15px;
    cursor: pointer;
    position: relative;
}

.nav-item::after {
    content: '';
    width: 4px;
    height: 4px;
    background: #999;
    border-radius: 50%;
    position: absolute;
    right: -20px;
}

.nav-item:last-child::after {
    display: none;
}

.dropdown-icon {
    font-size: 20px;
}

/* Textarea */
.input-group {
    margin-bottom: 20px;
}

textarea {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    color: #333;
}

textarea::placeholder {
    color: #aaa;
}

textarea:focus {
    outline: none;
    border-color: #1abc9c;
    box-shadow: 0 0 0 3px rgba(26, 188, 156, 0.1);
}

/* QR Count Badge */
.qr-count {
    display: inline-block;
    background: #1abc9c;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    margin-top: -10px;
}

/* Checkboxes */
.checkbox-group {
    margin-bottom: 25px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    cursor: pointer;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #1abc9c;
}

.checkbox-item label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
}

.badge-new {
    background: #ff4757;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

/* Button */
.btn-create {
    width: 100%;
    background: #1abc9c;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.3s;
    margin-top: 10px;
}

.btn-create:hover {
    background: #16a085;
}

/* QR Code Display */
.qr-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    border: 1px solid #e0e0e0;
}

.qr-code {
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 8px;
    padding: 10px;
}

.qr-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #eee 25%, transparent 25%, transparent 75%, #eee 75%, #eee),
        linear-gradient(45deg, #eee 25%, transparent 25%, transparent 75%, #eee 75%, #eee);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    background-color: #f5f5f5;
    border-radius: 4px;
}

.resultholder svg{
    max-width: 100%;
    height: auto;
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        flex-direction: column;
        gap: 20px;
    }

    .nav-items {
        flex-direction: column;
        gap: 15px;
        margin-left: 0;
    }

    .right-section {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .qr-item {
        flex: 1;
        min-width: 250px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    .header {
        flex-wrap: wrap;
        gap: 15px;
    }

    .right-section {
        flex-direction: column;
    }
}