:root {
    --primary-color: #e1306c; /* Instagram Pink */
    --secondary-color: #833ab4; /* Instagram Purple */
    --background-dark: #1a1a2e;
    --card-dark: #2c2c44;
    --text-light: #f0f0f0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--background-dark), #16213e);
    color: var(--text-light);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background: var(--card-dark);
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

h1 {
    margin: 0;
    color: var(--primary-color);
    letter-spacing: 2px;
}

.container {
    max-width: 1200px;
    width: 90%;
    margin: 40px auto;
    display: grid;
    grid-template-columns: 1fr; /* Default to single column for mobile */
    gap: 30px;
    flex-grow: 1;
}

@media (min-width: 900px) {
    .container {
        grid-template-columns: 2fr 1.5fr; /* Two columns for desktop */
    }
}

/* --- General Card Styling --- */
section, .effects-panel, .status-box {
    background: var(--card-dark);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
}

/* --- Input Group Styling --- */
.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

#videoLink {
    flex-grow: 1;
    padding: 15px;
    border: none;
    border-radius: 8px;
    background: #444466;
    color: var(--text-light);
    font-size: 16px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

#videoLink::placeholder {
    color: #b0b0d0;
}

/* --- Button Styling (Amazing Effect) --- */
button {
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    color: white;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(225, 48, 108, 0.5);
}

button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(225, 48, 108, 0.8);
    opacity: 0.9;
}

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

.small-btn {
    padding: 8px 15px;
    font-size: 14px;
    margin-top: 10px;
}

/* --- Status and Effects Panel --- */
.status-box {
    padding: 15px;
    background-color: #3e275d;
    border: 1px dashed var(--primary-color);
    margin-bottom: 20px;
    animation: pulse 1.5s infinite alternate; /* AMAZING EFFECT */
}

@keyframes pulse {
    from { box-shadow: 0 0 10px var(--primary-color); }
    to { box-shadow: 0 0 20px var(--secondary-color); }
}

.effects-panel {
    margin-top: 20px;
}

.effects-panel label {
    display: block;
    margin-bottom: 10px;
    cursor: pointer;
    transition: color 0.2s;
}

.effects-panel label:hover {
    color: var(--primary-color);
}

/* --- Preview and History --- */
.preview-placeholder {
    height: 200px;
    background: #444466;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-style: italic;
    color: #b0b0d0;
    margin-bottom: 20px;
}

.download-history ul {
    list-style: none;
    padding: 0;
}

.download-history li {
    padding: 10px 0;
    border-bottom: 1px solid #444466;
}

footer {
    text-align: center;
    padding: 15px;
    background: var(--card-dark);
    margin-top: auto;
    font-size: 0.9em;
    color: #b0b0d0;
}