/* Pixel Pin Shared Webapp Styles */
:root {
    --pixel-orange: #ff6600;
    --pixel-orange-light: #ff8833;
    --pixel-orange-dark: #cc5200;
    --bg-dark: #000000;
    --bg-section: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 102, 0, 0.2);
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #888888;
    color-scheme: dark;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    padding: 20px;
    margin: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
header {

    margin-bottom: 30px;
}

.logo {
    max-width: 400px;
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: var(--pixel-orange);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.subtitle {
    font-size: 1.2em;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* Back link */
.back-link {
    display: inline-block;
    color: var(--pixel-orange);
    text-decoration: none;
    margin-bottom: 20px;
    padding: 8px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.back-link:hover {
    background: rgba(255, 102, 0, 0.1);
    border-color: var(--pixel-orange);
}

/* Section */
.section {
    background: var(--bg-section);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
}

h2 {
    color: var(--pixel-orange);
    margin-bottom: 20px;
    font-size: 1.8em;
    border-bottom: 2px solid var(--pixel-orange);
    padding-bottom: 10px;
}

h3 {
    color: var(--pixel-orange-light);
    margin: 20px 0 10px 0;
    font-size: 1.3em;
}

/* Buttons */
button, .button {
    display: inline-block;
    background: var(--pixel-orange);
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    border: none;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    transition: all 0.3s ease;
    cursor: pointer;
    margin: 5px 5px 5px 0;
}

button:hover:not(:disabled), .button:hover {
    background: var(--pixel-orange-light);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 102, 0, 0.4);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

button.secondary {
    background: transparent;
    border: 2px solid var(--pixel-orange);
}

button.secondary:hover:not(:disabled) {
    background: rgba(255, 102, 0, 0.2);
}

/* Inputs */
input[type="text"],
input[type="number"],
input[type="color"],
input[type="range"],
select,
textarea {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 10px;
    color: var(--text-primary);
    font-size: 1em;
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--pixel-orange);
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.2);
}

label {
    color: var(--text-secondary);
    display: inline-block;
    margin-bottom: 5px;
}

/* File input */
input[type="file"] {
    display: none;
}

.file-picker__button {
    display: inline-block;
    background: var(--pixel-orange);
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-picker__button:hover {
    background: var(--pixel-orange-light);
    transform: scale(1.05);
}

/* Status messages */
.muted, .status {
    color: var(--text-muted);
    font-size: 0.9em;
}

.status.success {
    color: #4ade80;
}

.status.error {
    color: #f87171;
}

.status.warning {
    color: #fbbf24;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-muted);
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
}

.footer-project {
    margin-bottom: 10px;
    font-size: 0.9em;
}

.footer-logo {
    display: inline-block;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 1;
}

.footer-logo img {
    height: 40px;
    width: auto;
}

/* Version tag */
.version-tag {
    font-weight: 400;
    font-size: 0.72rem;
    opacity: 0.6;
    margin-left: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 1.8em;
    }

    .section {
        padding: 20px;
    }
}

/* Utility classes */
.row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    margin: 0.75rem 0;
}

.actions {
    margin: 1.5rem 0;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
