/* General Setup (KEEP THIS SECTION) */
:root {
    --primary-color: #f75c80; /* A lovely pink/rose color */
    --secondary-color: #f9f9f9;
    --background-color: #ffffff;
    --text-color: #333;
    --border-radius: 8px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --highlight-color: #6f1280; /* A soft purple for contrast */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

body {
    background-color: var(--secondary-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 20px auto;
    padding: 0 20px;
}

/* Header (KEEP THIS SECTION) */
.header {
    background-color: var(--primary-color);
    color: white;
    padding: 40px 0;
    text-align: center;
    box-shadow: var(--shadow);
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 5px;
}


/* NEW: Tab Navigation Styles */
.tabs {
    display: flex;
    justify-content: center;
    background-color: var(--background-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin: 0 auto;
    padding: 0 20px;
    max-width: 1100px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.tab-button {
    background: none;
    border: none;
    padding: 15px 25px;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, border-bottom 0.3s;
    outline: none;
    border-bottom: 3px solid transparent; /* Base for highlighting */
}

.tab-button:hover {
    background-color: var(--secondary-color);
}

.tab-button.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
}

/* Tab Content Visibility */
.tab-content {
    display: none; /* Hide all content by default */
}

.tab-content.active {
    display: block; /* Show the active content */
}


/* Form & Button Styles (KEEP THIS SECTION) */
.input-form-section, .display-section {
    background-color: var(--background-color);
    padding: 30px;
    margin-bottom: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* ... (Keep form group, input, textarea, select, and btn styles here) ... */

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--primary-color);
}

.form-group input[type="text"],
.form-group input[type="date"],
.form-group input[type="url"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
}

.btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #e55a7a;
}

hr {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), var(--primary-color), rgba(0, 0, 0, 0));
    margin: 30px 0;
}

/* Card Grid for Dates and Milestones (KEEP THIS SECTION) */
.date-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.date-card {
    /* Existing .date-card styles... */
    background-color: var(--secondary-color);
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.date-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}
/* ... (Keep card-image, card-content, etc. styles) ... */

.card-image {
    width: 100%;
    height: 200px;
    background-color: #ddd; /* Placeholder background */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-image .placeholder-text {
    color: #888;
    font-style: italic;
    padding: 15px;
}

.card-content {
    padding: 15px;
}

.card-content h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.card-content p {
    margin-bottom: 10px;
}

.date-info {
    font-size: 0.9em;
    color: #666;
    border-bottom: 1px dashed #eee;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

/* NEW: List Container for Gifts and Important Dates */
.list-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.list-item {
    background-color: var(--background-color);
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.item-details strong {
    color: var(--highlight-color);
}

.item-details a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9em;
    margin-left: 15px;
}

/* Styling for the Milestone Card (similar to date card but different focus) */
.milestone-card {
    background-color: #fff8f8; /* Very light pink background */
    border: 1px solid var(--primary-color);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.milestone-card h3 {
    color: var(--highlight-color);
    margin-bottom: 5px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 5px;
}
.footer {
    text-align: center; /* This was likely missing or overridden */
    padding: 20px;
    background-color: #333;
    color: white;
    margin-top: 30px;
}