:root {
    --bg-color: #fdfbf7;
    --primary-color: #8ac6d1; /* Pastel Blue */
    --secondary-color: #ffb7b2; /* Pastel Pink */
    --accent-color: #e2f0cb; /* Pastel Green */
    --text-color: #555;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --radius: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--bg-color);
    background-image: radial-gradient(#e2f0cb 1px, transparent 1px), radial-gradient(#ffb7b2 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Auth / Login */
.login-container {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.baby-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

.login-card input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.error {
    color: #ff6b6b;
    font-size: 0.9rem;
}

button {
    cursor: pointer;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-family: inherit;
    font-weight: 600;
    transition: all 0.2s;
}

button[type="submit"], .btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

button[type="submit"]:hover, .btn-primary:hover {
    background-color: #7ab3be;
    transform: translateY(-2px);
}

/* Header */
.main-header {
    background: var(--white);
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

/* Hero */
.hero {
    text-align: center;
    padding: 3rem 1rem;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #4a4a4a;
}

/* Grid */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding-bottom: 4rem;
}

.item-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.item-card:hover {
    transform: translateY(-5px);
}

.item-image {
    height: 200px;
    background: #f0f0f0;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-img {
    font-size: 3rem;
    color: #ccc;
}

.item-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.item-content h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

.item-content .desc {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.item-content .meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.btn-reserve {
    width: 100%;
    background-color: var(--accent-color);
    color: #556b2f;
}

.btn-reserve:hover {
    background-color: #d1e2b5;
}

/* Reserved State */
.item-card.reserved {
    opacity: 0.8;
}

.reserved-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: #888;
    backdrop-filter: blur(2px);
}

.btn-disabled {
    width: 100%;
    background: #eee;
    color: #aaa;
    cursor: not-allowed;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 10px; right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #aaa;
}

/* Admin Specific */
.admin-badge {
    background: red;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    margin-right: 10px;
}

.admin-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

.admin-actions button {
    flex: 1;
    padding: 5px;
    font-size: 0.9rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

/* Form inputs in Modal */
.modal-content label {
    display: block;
    margin-top: 10px;
    font-weight: 600;
    font-size: 0.9rem;
}

.modal-content input, .modal-content textarea {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.modal-content button {
    margin-top: 15px;
    width: 100%;
}
