/* === public/style.css === */

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Quicksand', sans-serif;
    color: #fff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Allows scrolling on mobile */
    padding: 20px;
    overflow-x: hidden;
}

/* Background Animation */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    z-index: -1;
}

/* Container */
.container {
    width: 100%;
    max-width: 800px; /* Limits width on large screens */
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

/* Typography */
h1 {
    font-family: 'Rancho', cursive;
    font-size: 4rem;
    color: #26d649;
    text-align: center;
    text-shadow: 2px 2px 4px #000;
    margin-bottom: 10px;
}

h2, h3 {
    font-family: 'Rancho', cursive;
    color: #26d649;
    letter-spacing: 1px;
}

/* Cards */
.card {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid #26d649;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Form Styling */
.input-section h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    text-align: center;
}

.form-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

/* Make inputs stack on mobile */
@media (max-width: 600px) {
    .form-group {
        flex-direction: column;
    }
}

input {
    width: 100%;
    padding: 12px;
    border: 2px solid #26d649;
    background: #fff;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    font-family: 'Quicksand', sans-serif;
}

input:focus {
    box-shadow: 0 0 10px #26d649;
}

small {
    display: block;
    margin-top: 5px;
    color: #ccc;
    font-size: 0.8rem;
}

/* Buttons */
button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-family: 'Rancho', cursive;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}

button:active {
    transform: scale(0.98);
}

.btn-primary { background-color: #26d649; color: #000; font-weight: bold; }
.btn-success { background-color: #26d649; color: #fff; background: linear-gradient(45deg, #11998e, #38ef7d); }
.btn-danger { background-color: #ff416c; color: #fff; background: linear-gradient(45deg, #ff416c, #ff4b2b); }

.actions {
    display: flex;
    gap: 10px;
}

/* Results Section */
.results-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.list-card ul {
    list-style: none;
    margin-top: 10px;
    max-height: 300px;
    overflow-y: auto;
}

.list-card li {
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 8px;
    padding: 10px;
    border-radius: 5px;
    border-left: 4px solid #26d649;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.empty-msg {
    text-align: center;
    color: #888;
    border: none !important;
    background: none !important;
}

/* Responsive Text */
@media (max-width: 480px) {
    h1 { font-size: 3rem; }
    .card { padding: 15px; }
}