/* Main CSS - Base Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    letter-spacing: -0.011em;
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

.app-container {
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    background: var(--surface-base);
    position: relative;
    overflow-x: hidden;
}


/* Premium Typography System */
h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    line-height: 1.2;
    font-family: 'Inter', sans-serif;
}

h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.3;
    font-family: 'Inter', sans-serif;
}

h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    line-height: 1.4;
    font-family: 'Inter', sans-serif;
}

h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.01em;
    line-height: 1.4;
    font-family: 'Inter', sans-serif;
}

body, p {
    font-size: 15px;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.65;
    letter-spacing: -0.01em;
    font-family: 'Inter', sans-serif;
}

.numbers {
    font-family: 'Courier New', monospace;
    font-weight: 700;
}

/* Buttons */
button {
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    padding: 12px 24px;
    transition: all 0.3s ease;
    min-height: 44px; /* Touch-friendly */
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--text-on-accent);
    border-radius: 16px;
    box-shadow: var(--shadow-gold);
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    letter-spacing: -0.01em;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    padding: 14px 28px;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold-hover);
    background: var(--primary-gradient-hover);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-gold);
}

.btn-primary:disabled {
    background: var(--surface-hover);
    color: var(--text-disabled);
    cursor: not-allowed;
    box-shadow: none;
}

.btn-secondary {
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    color: var(--text-secondary);
    border-radius: 16px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.01em;
    padding: 14px 28px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(245, 200, 106, 0.4);
    color: var(--gold-primary);
}

.btn-yellow {
    background: var(--gold-primary);
    color: var(--text-on-accent);
    border-radius: 24px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    letter-spacing: -0.01em;
    box-shadow: 0 2px 8px rgba(245, 200, 106, 0.25);
    transition: all 0.2s ease;
    padding: 12px 20px;
    border: none;
}

.btn-yellow:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold-hover);
}

.btn-remove {
    background: rgba(255, 0, 0, 0.2);
    color: #ff4444;
    padding: 4px 8px;
    min-height: auto;
    font-size: 18px;
    border-radius: 4px;
}

/* Forms */
input[type="text"],
input[type="date"],
input[type="email"],
textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--gold-primary);
}

input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gold-primary);
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gold-primary);
    cursor: pointer;
    border: none;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.screen-title {
    margin-bottom: 24px;
    text-align: center;
}

.navigation-buttons {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    justify-content: space-between;
}

.error-message {
    padding: 20px;
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    border-radius: 8px;
    color: #ff4444;
    text-align: center;
}

/* Print Styles */
@media print {
    .navigation-buttons,
    .btn-primary,
    .btn-secondary {
        display: none;
    }
}

