/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: white;
    min-height: 100vh;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
}

header h1 {
    font-weight: 600;
    letter-spacing: 1px;
}

/* Buttons */
button {
    padding: 10px 18px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    background: linear-gradient(45deg, #3b82f6, #06b6d4);
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    padding: 30px 40px;
}

/* Glass Card */
.card {
    background: rgba(255,255,255,0.07);
    border-radius: 18px;
    padding: 25px;
    backdrop-filter: blur(12px);
    transition: all 0.4s ease;
    animation: fadeIn 0.8s ease forwards;
}

.card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

.card h3 {
    margin-bottom: 15px;
}

/* Inputs */
input, textarea {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: none;
    margin-bottom: 10px;
    font-size: 14px;
}

/* Saved list */
#savedList li {
    margin-bottom: 8px;
    opacity: 0;
    animation: slideUp 0.5s ease forwards;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px);}
    to { opacity: 1; transform: translateY(0);}
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(10px);}
    to { opacity: 1; transform: translateY(0);}
}
/* Light Theme */
.light-mode {
    background: #f1f5f9;
    color: #0f172a;
}

.light-mode .card {
    background: white;
    color: #0f172a;
}

.light-mode header {
    background: rgba(0,0,0,0.05);
}

/* Smooth Theme Transition */
body {
    transition: all 0.4s ease;
}
.loader {
    border: 4px solid rgba(255,255,255,0.2);
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    animation: spin 1s linear infinite;
    margin: 10px 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}