* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    background: #1d2a3a;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0;
}

/* Header */
.site-header {
    background: #1d2a3a;
    padding: 20px 40px;
    border-bottom: none;
    position: relative;
    overflow: hidden;
}

.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: repeating-linear-gradient(
        -60deg,
        transparent,
        transparent 8px,
        rgba(255, 255, 255, 0.03) 8px,
        rgba(255, 255, 255, 0.03) 16px
    );
    pointer-events: none;
}

.site-header::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: 50%;
    height: 100%;
    background: repeating-linear-gradient(
        -60deg,
        transparent,
        transparent 8px,
        rgba(255, 255, 255, 0.05) 8px,
        rgba(255, 255, 255, 0.05) 16px
    );
    pointer-events: none;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.logo-section {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    margin-bottom: 0;
}

.police-badge-icon {
    display: none;
}

.site-header h1 {
    font-size: 32px;
    font-weight: 900;
    color: #fff;
    letter-spacing: 6px;
    font-family: 'Arial Black', 'Helvetica Neue', sans-serif;
}

.site-header h1::after {
    content: ' | POLCOM';
    font-weight: 400;
    letter-spacing: 3px;
    color: #c8ff00;
}

.tagline {
    font-size: 13px;
    color: #8a9bae;
    letter-spacing: 1px;
    margin-top: 5px;
    margin-left: 2px;
}

/* Shortcuts Section */
.shortcuts-section {
    background: rgba(0, 0, 0, 0.2);
    padding: 30px 40px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.shortcuts-box {
    width: 280px;
    background: rgba(29, 42, 58, 0.98);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.shortcuts-title {
    font-size: 20px;
    font-weight: 700;
    color: #c8ff00;
    padding: 15px 20px;
    margin: 0;
    font-family: 'Open Sans', Arial, sans-serif;
}

.shortcut-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-top: 2px solid #c8a000;
    transition: background 0.2s;
}

.shortcut-link:hover {
    background: rgba(200, 255, 0, 0.1);
}

.shortcut-link .arrow {
    font-size: 22px;
    color: #c8ff00;
    font-weight: 300;
}

/* Main Container */
.container {
    flex: 1;
    display: flex;
    gap: 60px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    padding: 40px 20px;
    background: #1d2a3a;
}

/* Footer */
.site-footer {
    background: #151f2b;
    padding: 20px;
    text-align: center;
    border-top: 1px solid #2a3a4a;
}

.site-footer p {
    color: #5a6a7a;
    font-size: 12px;
    letter-spacing: 0.5px;
}

/* Badge Preview */
.badge-preview {
    display: flex;
    justify-content: center;
    align-items: center;
}

.badge-holder {
    position: relative;
    display: inline-block;
}

.badge-holder img.badge-bg {
    display: block;
    width: 320px;
    height: auto;
}

.badge-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.badge-photo-container {
    position: absolute;
    top: 46%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85px;
    height: 105px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    border: none;
}

.badge-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge-photo.hidden {
    display: none;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(200, 235, 180, 0.6);
    color: #555;
    font-size: 10px;
    font-weight: 500;
    border: 1px dashed #777;
}

.photo-placeholder.hidden {
    display: none;
}

.badge-name {
    position: absolute;
    top: 62%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
    text-align: center;
    max-width: 200px;
    word-wrap: break-word;
    white-space: nowrap;
}

.badge-number {
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 28px;
    font-weight: 900;
    color: #000;
    letter-spacing: 2px;
    font-family: 'Arial Black', sans-serif;
}

.barcode {
    display: none;
}

/* Form Panel */
.form-panel {
    background: #fff;
    border-radius: 0;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    width: 350px;
    border: none;
}

.form-panel h1 {
    font-size: 20px;
    color: #1d2a3a;
    margin-bottom: 25px;
    text-align: left;
    font-weight: 700;
    border-bottom: 3px solid #c8ff00;
    padding-bottom: 12px;
    font-family: 'Arial', sans-serif;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    color: #1d2a3a;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input[type="text"]:focus {
    outline: none;
    border-color: #c8ff00;
    box-shadow: 0 0 0 2px rgba(200, 255, 0, 0.2);
}

.file-input-wrapper {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: border-color 0.3s;
}

.file-input-wrapper:hover {
    border-color: #c8ff00;
}

.file-input-wrapper input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.file-input-wrapper::before {
    content: 'Vælg fil';
    background: #f0f0f0;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 13px;
    color: #333;
    border: 1px solid #ccc;
}

#file-name {
    font-size: 13px;
    color: #e74c3c;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #c8ff00;
    color: #1d2a3a;
    border: none;
    font-weight: 700;
}

.btn-primary:hover {
    background: #b8ef00;
    box-shadow: 0 4px 12px rgba(200, 255, 0, 0.3);
}

.btn-secondary {
    background: #1d2a3a;
    color: #fff;
    border: none;
}

.btn-secondary:hover {
    background: #2a3a4a;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        gap: 30px;
    }
    
    .form-panel {
        width: 100%;
        max-width: 350px;
    }
}
