/* --- VARIABLES & RESET --- */
:root {
    --bg-main: #f0fdf4;
    --sidebar-bg: #fff5eb;
    --accent-pink: #fce7f3;
    --accent-lavender: #f3e8ff;
    --accent-blue: #e0f2fe;
    --text-dark: #4a4a4a;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-dark);
}

/* --- GRID LAYOUT --- */
.app-container {
    display: grid;
    grid-template-columns: 260px 1fr; /* Desktop: Sidebar + Content */
    min-height: 100vh;
}

/* Sidebar */
aside {
    background-color: var(--sidebar-bg);
    padding: 2rem;
    border-right: 1px solid #ffe0c2;
}

.logo-area h1 {
    font-size: 1.4rem;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    color: #d97706;
}

nav ul {
    list-style: none;
}

nav li a {
    display: block;
    padding: 15px;
    margin-bottom: 10px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.3s ease;
}

nav li a:hover, nav li a.active {
    background-color: var(--white);
    transform: translateX(5px);
}

/* Main Content Area */
main {
    padding: 2.5rem;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2.5rem;
}

h2 {
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* Recipe Cards */
.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.card {
    background: var(--white);
    padding: 1.2rem;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    text-align: center;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    cursor: pointer;
}

.img-placeholder {
    height: 140px;
    border-radius: 15px;
    margin-bottom: 12px;
    background-color: var(--accent-lavender);
}

/* Form Styling */
.form-panel {
    background: var(--white);
    padding: 2rem;
    border-radius: 24px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    height: fit-content;
}

.form-panel h3 { margin-bottom: 1.2rem; }

label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 5px;
    font-weight: bold;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 1.2rem;
    border: 1px solid #f1f1f1;
    background: #fafafa;
    border-radius: 10px;
}

.btn-submit {
    width: 100%;
    background-color: var(--accent-pink);
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-submit:hover { background-color: #fbcfe8; }

.btn-logout {
    width: 100%;
    background-color: var(--accent-pink);
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-logout:hover {
    background-color: #e64141;
    color: white;
}

/* Styling Icons */
.material-symbols-rounded {
    vertical-align: middle;
    margin-right: 8px;
    font-size: 1.4rem;
    color: #5c626f; 
    transition: color 0.3s ease;
}

nav li a:hover .material-symbols-rounded, 
nav li a.active .material-symbols-rounded {
    color: #d97706;
}

/* --- RESPONSIVE QUERIES --- */
@media (max-width: 1024px) {
    main {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .app-container {
        grid-template-columns: 1fr;
    }
    aside {
        padding: 1rem;
        border-right: none;
        border-bottom: 1px solid #ffe0c2;
    }
    nav ul {
        display: flex;
        overflow-x: auto;
    }
    nav li a { margin-right: 10px; white-space: nowrap; }
}