/* Base Styles */
:root {
    --primary-color: #C9A34A;
    --text-color: #333;
    --background-color: #fff;
    --light-gray: #f5f5f5;
    --mid-gray: #e0e0e0;
    --dark-gray: #555;
    --error-color: #e53935;
    --success-color: #43a047;
    --border-radius: 8px;
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', 'Segoe UI', 'Helvetica Neue', sans-serif;
    color: rgba(255, 255, 255, 0.9);
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 25%, #0f3460 50%, #16213e 75%, #1a1a2e 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: #C9A34A;
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: #f4d03f;
}

/* Logo */
.logo-container {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    max-width: 100%;
    height: auto;
}

.logo-small {
    max-width: 150px;
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
}

/* Start Screen */
.start-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
}

.main-title {
    margin-bottom: 60px;
    font-weight: 300;
    font-size: 2.5rem;
    text-align: center;
    background: linear-gradient(135deg, #C9A34A 0%, #f4d03f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-selection {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 60px;
}

.service-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 220px;
    height: 220px;
    background: rgba(15, 15, 15, 0.3);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    overflow: hidden;
}

.service-button:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    border-color: rgba(201, 163, 74, 0.4);
    background: rgba(25, 25, 35, 0.4);
}

.service-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(201, 163, 74, 0.1), transparent);
    transition: left 0.6s;
}

.service-button:hover::before {
    left: 100%;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-name {
    font-size: 1.2rem;
    font-weight: 500;
    background: linear-gradient(135deg, #C9A34A 0%, #f4d03f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Form Page */
.form-page {
    padding-top: 40px;
    padding-bottom: 80px;
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.back-button {
    display: flex;
    align-items: center;
    color: var(--text-color);
    font-weight: 500;
}

.back-button svg {
    margin-right: 8px;
}

.form-title {
    text-align: center;
    margin-bottom: 20px;
}

.form-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    font-size: 1.1rem;
    color: var(--dark-gray);
}

.form-section {
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: var(--box-shadow);
}

.section-title {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--mid-gray);
    font-weight: 500;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

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

.form-group.full-width {
    grid-column: span 2;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--mid-gray);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(201, 163, 74, 0.2);
}

.error-message {
    color: var(--error-color);
    font-size: 0.9rem;
}

.admin-link {
    color: var(--dark-gray);
    text-decoration: none;
    transition: var(--transition);
}

.admin-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
    margin-top: 5px;
    min-height: 20px;
}

.help-text {
    font-size: 0.85rem;
    color: var(--dark-gray);
    margin-top: 5px;
}

.character-count {
    font-size: 0.85rem;
    color: var(--dark-gray);
    text-align: right;
    margin-top: 5px;
}

/* File Upload */
.file-upload {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.file-upload input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 0;
    height: 0;
    z-index: -1;
    cursor: pointer;
}

.file-upload-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    user-select: none;
}

.file-upload-button:hover {
    background-color: #b08a36;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.file-upload-button:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.file-name {
    margin-left: 15px;
    font-size: 0.9rem;
}

.admin-link {
    color: var(--dark-gray);
    text-decoration: none;
    transition: var(--transition);
}

.admin-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}
    margin-left: 15px;
    font-size: 0.9rem;
}

.admin-link {
    color: var(--dark-gray);
    text-decoration: none;
    transition: var(--transition);
}

.admin-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.submit-button, .submit-btn {
    padding: 14px 40px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.submit-button:hover, .submit-btn:hover {
    background-color: #b08c3d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 163, 74, 0.3);
}

/* Confirmation Screen */
.confirmation-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
}

.confirmation-message {
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    padding: 60px;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--box-shadow);
}

.confirmation-icon {
    margin-bottom: 30px;
}

.confirmation-title {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.confirmation-text {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.back-to-home {
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
}

.back-to-home:hover {
    background-color: #b08c3d;
    color: white;
}

/* Footer */
.footer {
    margin-top: 60px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.admin-link {
    color: #C9A34A;
    font-weight: 500;
    background: linear-gradient(135deg, #C9A34A 0%, #f4d03f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: var(--transition);
}

.admin-link:hover {
    background: linear-gradient(135deg, #f4d03f 0%, #C9A34A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }
    
    .service-selection {
        flex-direction: column;
        align-items: center;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .confirmation-message {
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    .form-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .logo-small {
        margin-top: 20px;
        align-self: center;
    }
    
    .form-section {
        padding: 20px;
    }
    
    .main-title {
        font-size: 1.8rem;
    }
}

/* Ta bort outline på knappar */
button.file-upload-button {
    outline: none;
    border: none;
}

button.file-upload-button:focus {
    outline: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Widget Customization Styles */
.launcher-options {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.launcher-option {
    flex: 1;
    min-width: 150px;
}

.launcher-option input[type="radio"] {
    display: none;
}

.launcher-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.launcher-option input[type="radio"]:checked + .launcher-preview {
    border: 2px solid var(--primary-color);
    background-color: rgba(201, 163, 74, 0.05);
}

.launcher-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

.launcher-button {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.launcher-button svg {
    flex-shrink: 0;
}

.launcher-text-container {
    margin-top: 20px;
}

/* Color Picker Styles */
.color-picker-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.color-swatch {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--mid-gray);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.color-swatch input[type="color"] {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    opacity: 0;
}

.color-input-wrapper {
    flex: 1;
}

.color-hex-input {
    width: 100%;
    max-width: 120px;
    padding: 8px 10px;
    border: 1px solid var(--mid-gray);
    border-radius: var(--border-radius);
    font-family: monospace;
    text-transform: uppercase;
}

/* Color Picker Styles */
.color-picker-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.color-swatch {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--mid-gray);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.color-swatch input[type="color"] {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    opacity: 0;
}

.color-input-wrapper {
    flex: 1;
}

.color-hex-input {
    width: 100%;
    max-width: 120px;
    padding: 8px 10px;
    border: 1px solid var(--mid-gray);
    border-radius: var(--border-radius);
    font-family: monospace;
    text-transform: uppercase;
}

/* Form Title Container */
.form-title-container {
    width: 100%;
    text-align: center;
}

.form-header {
    flex-direction: column;
    align-items: center;
}

.form-subheader {
    text-align: center;
    margin-top: 5px;
    color: var(--dark-gray);
}

/* Form Title Container */
.form-title-container {
    width: 100%;
    text-align: center;
}

.form-header {
    flex-direction: column;
    align-items: center;
}

.form-subheader {
    text-align: center;
    margin-top: 5px;
    color: var(--dark-gray);
}

/* Enhanced File Upload Area */
.file-upload-area {
    position: relative;
    border: 2px dashed rgba(201, 163, 74, 0.5);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload-area:hover {
    border-color: rgba(201, 163, 74, 0.8);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.file-upload-area .file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-content {
    pointer-events: none;
}

.upload-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

.upload-text {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.upload-hint {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin: 0;
}

/* Enhanced Color Input Wrapper */
.color-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    border: 1px solid rgba(201, 163, 74, 0.3);
}

.color-input-wrapper .color-input {
    width: 50px;
    height: 40px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background: transparent;
}

.color-input-wrapper .color-preview {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: inline-block;
}

/* Label with help icon */
.label-with-help {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.help-icon {
    background: none;
    border: none;
    color: rgba(201, 163, 74, 0.7);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.help-icon:hover {
    color: rgba(201, 163, 74, 1);
    background: rgba(201, 163, 74, 0.1);
    transform: scale(1.1);
}

.xml-modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-sizing: border-box;
}

.xml-modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 2.5rem;
    border-radius: 16px;
    width: 100%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(201, 163, 74, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    position: relative;
}

.xml-close {
    color: rgba(255, 255, 255, 0.7);
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.xml-close:hover {
    color: #C9A34A;
}

.xml-modal-content h3 {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #C9A34A 0%, #f4d03f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Personality & Restriction Area Styles */
.personality-options {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .personality-options {
        grid-template-columns: 1fr !important;
    }
}

/* Ensure no other styles override personality grid */
.form-section .personality-options {
    grid-template-columns: repeat(2, 1fr) !important;
}

.personality-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.restriction-area {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.restriction-title {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Enhanced Color Picker Styles */
.color-picker-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    border: 1px solid rgba(201, 163, 74, 0.3);
}

.color-swatch {
    width: 60px;
    height: 40px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: #C9A34A;
}

.color-swatch:hover {
    border-color: rgba(201, 163, 74, 0.6);
    transform: scale(1.05);
}

.color-swatch input[type="color"] {
    position: absolute;
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    opacity: 0;
}

.color-hex-input {
    flex: 1;
    max-width: 120px;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.color-hex-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
}

/* Modern Admin Detail Layout */
.modern-detail-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-row {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 20px;
    border-bottom: none;
}

.detail-row:last-child {
    padding-bottom: 0.5rem;
}

.detail-row .detail-label {
    font-weight: 600;
    color: #ddd;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.detail-row .detail-value {
    color: #fff;
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 0;
}

.detail-row .detail-value a {
    color: var(--accent-color);
    text-decoration: none;
}

.detail-row .detail-value a:hover {
    text-decoration: underline;
}
