/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg-color: #f0faff;
    --card-bg: #ffffff;
    --border-color: #d6eafb;
    --text-color: #2c3e50;
    --text-color-dark: #7f8c8d;
    --primary-blue: #3b82f6;
    --primary-green: #22c55e;
    --primary-red: #ef4444;
    --blue-gradient: linear-gradient(90deg, #3b82f6, #60a5fa);
    --green-gradient: linear-gradient(90deg, #16a34a, #22c55e);
    --teal-gradient: linear-gradient(90deg, #14b8a6, #2dd4bf);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

#snow-canvas {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none;
}

.page-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 2rem; background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 100;
}
.logo { display: flex; align-items: center; gap: 0.75rem; }
.logo i { font-size: 1.5rem; color: var(--primary-blue); }
.logo h1 { 
    font-size: 1.25rem; 
    color: var(--text-color);
    margin-bottom: 0.25rem;
}
.logo .location-info {
    font-size: 0.75rem;
    color: var(--text-color-dark);
    font-weight: 500;
}
.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.join-btn {
    font-size: 0.9rem; font-weight: 500; padding: 0.6rem 1rem;
    border-radius: 8px; background: var(--blue-gradient); color: #fff;
    text-decoration: none; transition: all 0.2s ease; border: none;
    cursor: pointer;
}
.join-btn:hover { opacity: 0.9; box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3); }

.container { max-width: 1200px; margin: 2rem auto; padding: 0 2rem; }

.service-selector {
    background: var(--card-bg); border: 1px solid var(--border-color);
    border-radius: 12px; padding: 1.5rem; margin-bottom: 1.5rem;
}
.service-selector select {
    width: 100%; padding: 0.75rem; background: #ffffff;
    border: 1px solid var(--border-color); border-radius: 8px;
    color: var(--text-color); font-size: 1rem; font-family: 'Inter', sans-serif;
}
.service-selector select option { background: #ffffff; }

.main-content { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

.card {
    background: var(--card-bg); border: 1px solid var(--border-color);
    border-radius: 12px; backdrop-filter: blur(10px);
    display: flex; flex-direction: column;
}

.card-left { padding: 1.5rem; }
.card-left h3 {
    font-size: 1.2rem; color: var(--text-color); margin-bottom: 1.5rem;
    display: flex; align-items: center; gap: 0.5rem;
}

.form-group { margin-bottom: 1rem; }
.form-group label {
    display: block; font-size: 0.9rem;
    color: var(--text-color-dark); margin-bottom: 0.5rem;
}
.input-wrapper { position: relative; }
.input-wrapper input[type="text"],
.input-wrapper select {
    width: 100%; padding: 0.75rem; padding-left: 2.5rem;
    background: #ffffff; border: 1px solid var(--border-color);
    border-radius: 8px; color: var(--text-color); font-size: 1rem;
    transition: all 0.2s ease;
}
.input-wrapper input[type="text"]:focus,
.input-wrapper select:focus {
    outline: none; border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}
.input-wrapper .fa-search, 
.input-wrapper .fa-key,
.input-wrapper .fa-bolt,
.input-wrapper .fa-gas-pump,
.input-wrapper .fa-tag,
.input-wrapper .fa-user,
.input-wrapper .fa-car,
.input-wrapper .fa-mobile-alt {
    position: absolute; left: 1rem; top: 50%;
    transform: translateY(-50%); color: var(--text-color-dark);
    z-index: 1;
}

.submit-btn {
    width: 100%; padding: 0.85rem; font-size: 1rem; font-weight: 600;
    color: #fff; background: var(--blue-gradient); border: none;
    border-radius: 8px; cursor: pointer; transition: all 0.2s ease;
}
.submit-btn:hover { opacity: 0.9; box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3); }
.submit-btn:disabled { background: var(--text-color-dark); cursor: not-allowed; }

#status-message {
    margin-top: 1.5rem; padding: 1rem; border-radius: 8px;
    font-size: 0.9rem; display: none;
}
#status-message.success {
    background: rgba(34, 197, 94, 0.1); border: 1px solid var(--primary-green);
    color: var(--primary-green);
}
#status-message.error {
    background: rgba(239, 68, 68, 0.1); border: 1px solid var(--primary-red);
    color: var(--primary-red); white-space: pre-wrap;
}

.form-footer {
    margin-top: auto; padding-top: 1.5rem; border-top: 1px solid var(--border-color);
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.85rem; color: var(--text-color-dark);
}
.form-footer .developer, .form-footer .secure {
    display: flex; align-items: center; gap: 0.5rem;
}
.form-footer .fa-code { color: var(--primary-blue); }
.form-footer .fa-lock { color: var(--primary-green); }

.card-right { /* No padding */ }
.response-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.5rem; border-bottom: 1px solid var(--border-color);
}
.response-header h3 {
    font-size: 1.2rem; color: var(--text-color);
    display: flex; align-items: center; gap: 0.5rem;
}
#copy-btn {
    font-size: 0.8rem; font-weight: 500; padding: 0.5rem 0.75rem;
    border-radius: 6px; background: var(--green-gradient);
    color: #fff; border: none; cursor: pointer;
}
#copy-btn i { margin-right: 5px; }

.response-body {
    padding: 1.5rem; overflow-y: auto;
    flex-grow: 1; max-height: 400px;
}
.response-body pre {
    background-color: #000; color: #d4d4d4; padding: 1rem;
    border-radius: 8px; white-space: pre-wrap; word-wrap: break-word;
    font-family: "Courier New", Courier, monospace; font-size: 0.9rem;
}
.response-body .placeholder { color: var(--text-color-dark); }

.download-btn {
    padding: 0.6rem 1rem; font-size: 0.9rem; font-weight: 500;
    margin-bottom: 1rem; background: var(--teal-gradient);
    color: #fff; border: none; border-radius: 6px;
    cursor: pointer; text-decoration: none;
}
.download-btn i { margin-right: 5px; }

.response-footer {
    padding: 1rem 1.5rem; border-top: 1px solid var(--border-color);
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.85rem; color: var(--text-color-dark);
}
.response-footer span { font-weight: 600; color: var(--text-color); }

.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(5px);
    z-index: 1000; display: none; justify-content: center;
    align-items: center; padding: 1rem;
}
.modal-content {
    background: #fff; border-radius: 12px; padding: 2rem;
    max-width: 450px; width: 100%; text-align: center; color: #333;
}
.modal-content h2 {
    font-size: 1.5rem; color: #111; margin-bottom: 0.5rem;
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.modal-content h2 .fa-paper-plane,
.modal-content h2 .fa-user-lock,
.modal-content h2 .fa-map-marker-alt { color: var(--primary-blue); }
.modal-content p { color: #555; margin-bottom: 1.5rem; }
.modal-button {
    display: block; width: 100%; padding: 0.85rem; border-radius: 8px;
    text-decoration: none; font-size: 1rem; font-weight: 600;
    color: #fff; margin-bottom: 0.75rem; transition: all 0.2s ease;
}
.modal-button.telegram { background: #229ED9; }
.modal-button.whatsapp { background: #25D366; }
.modal-button.continue {
    background: var(--teal-gradient); border: none; cursor: pointer;
}
.modal-button:hover { opacity: 0.9; }

/* Utility class */
.hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .main-content { grid-template-columns: 1fr; }
    .page-header { 
        padding: 1rem; 
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .logo { justify-content: center; }
    .container { padding: 0 1rem; margin-top: 1rem; }
    .location-info {
        font-size: 0.7rem;
    }
    .user-info {
        flex-direction: column;
        gap: 0.5rem;
    }
}