:root {
    --primary: #f0c929; /* Pokemon Yellow */
    --primary-dark: #d5b018;
    --secondary: #3b4cca; /* Pokemon Blue */
    --bg-dark: #0f111a;
    --bg-card: rgba(30, 34, 51, 0.7);
    --text-main: #ffffff;
    --text-muted: #a0a5bc;
    --success: #2ecc71;
    --danger: #e74c3c;
    --border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(59, 76, 202, 0.15), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(240, 201, 41, 0.1), transparent 25%);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
}

.app-container {
    width: 100%;
    max-width: 450px;
    margin-top: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    text-shadow: 0 0 10px rgba(240, 201, 41, 0.3);
    margin-bottom: 5px;
}

.logo i {
    color: var(--primary);
}

.subtitle {
    color: var(--text-muted);
    font-weight: 300;
    font-size: 1rem;
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.hidden {
    display: none !important;
}

/* Form Styles */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 400;
}

.input-group label i {
    margin-right: 5px;
    color: var(--primary);
}

select, input[type="number"] {
    width: 100%;
    padding: 15px;
    background: rgba(15, 17, 26, 0.6);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

select:focus, input[type="number"]:focus {
    border-color: var(--primary);
}

select option {
    background: var(--bg-dark);
    color: var(--text-main);
}

.price-input {
    position: relative;
    display: flex;
    align-items: center;
}

.currency-symbol {
    position: absolute;
    right: 15px;
    color: var(--text-muted);
    font-weight: 600;
}

/* File Upload */
.file-upload-label {
    cursor: pointer;
    display: block !important;
}

.file-upload-label input[type="file"] {
    display: none;
}

.upload-area {
    border: 2px dashed var(--border);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    background: rgba(15, 17, 26, 0.3);
    transition: all 0.3s;
}

.upload-area:active {
    background: rgba(15, 17, 26, 0.8);
}

.upload-area i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
    display: block;
}

.upload-area span {
    color: var(--text-muted);
    font-size: 0.95rem;
}

#imagePreviewContainer {
    position: relative;
    margin-top: 15px;
    border-radius: 15px;
    overflow: hidden;
}

#imagePreview {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
    border: 1px solid var(--border);
}

.btn-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--bg-dark);
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(240, 201, 41, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    border: 1px solid var(--border);
    padding: 15px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 15px;
}

.btn-secondary:active {
    background: rgba(255, 255, 255, 0.2);
}

.w-100 {
    width: 100%;
}

/* Loading */
.text-center {
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    margin: 0 auto 20px auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.small-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 5px;
}

/* Results */
.result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
}

.result-header h2 {
    font-size: 1.4rem;
    color: var(--primary);
    line-height: 1.2;
}

.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.badge.buy {
    background-color: rgba(46, 204, 113, 0.2);
    color: var(--success);
    border: 1px solid var(--success);
}

.badge.dont-buy {
    background-color: rgba(231, 76, 60, 0.2);
    color: var(--danger);
    border: 1px solid var(--danger);
}

.detail-item {
    margin-bottom: 20px;
}

.detail-item .label {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.detail-item .value {
    font-size: 1.05rem;
    line-height: 1.4;
}

.price-comparison {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
}

.price-box {
    display: flex;
    flex-direction: column;
}

.price-box.market-price {
    text-align: right;
}

.price-box .label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.price-box strong {
    font-size: 1.2rem;
}

.vs {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--primary);
    background: rgba(240, 201, 41, 0.1);
    padding: 5px 10px;
    border-radius: 10px;
}

.profit-section {
    text-align: center;
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
}

.profit-section .profit { color: var(--success); }
.profit-section .loss { color: var(--danger); }

.reason-box {
    background: rgba(59, 76, 202, 0.15);
    border-left: 4px solid var(--secondary);
    padding: 15px;
    border-radius: 0 10px 10px 0;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.reason-box i {
    color: var(--secondary);
    font-size: 1.2rem;
    margin-top: 3px;
}

.reason-box p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}
