:root {
    --primary-color: #e56b6f;
    --primary-light: #ffb4b7;
    --secondary-color: #6d597a;
    --bg-color: #fceceb;
    --card-bg: #ffffff;
    --text-color: #355070;
    --accent-color: #b56576;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --radius: 12px;

    /* Imported from index.html for Header */
    --primary: #7c3aed;
    --secondary: #ec4899;
    --accent: #06b6d4;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

body {
    font-family: 'Outfit', 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    /* align-items: stretch; is default, good for header width */
    min-height: 100vh;
    padding-bottom: 40px;
}

.container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    /* Center the container horizontally */
}

.page-header {
    text-align: center;
    margin-bottom: 2rem;
}

h1 {
    color: var(--secondary-color);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

p.subtitle {
    color: var(--accent-color);
    font-size: 1.1rem;
}

.input-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.form-group {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.input-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

input[type="date"],
input[type="number"] {
    padding: 0.8rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    background-color: #fbfbfb;
    color: var(--text-color);
}

input[type="date"]:focus,
input[type="number"]:focus {
    border-color: var(--primary-color);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(229, 107, 111, 0.1);
}

button.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 1.3rem;
    /* align with inputs approx */
}

button.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 107, 111, 0.3);
    background-color: #d65a5e;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.month-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    animation: fadeIn 0.5s ease-out forwards;
}

.month-header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    text-align: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 1rem;
    text-align: center;
}

.day-name {
    font-size: 0.8rem;
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.day {
    padding: 0.8rem 0;
    font-size: 0.95rem;
    border-radius: 50%;
    margin: 2px;
    transition: background-color 0.2s;
    position: relative;
}

.day.empty {
    background: none;
    cursor: default;
}

/* Kiemelés a menstruációs napokra */
.day.period {
    background-color: var(--primary-light);
    color: #a02c30;
    font-weight: bold;
    position: relative;
}

.day.period::after {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
}

.day.today {
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    font-weight: bold;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .calendar-grid {
        grid-template-columns: 1fr;
    }

    .form-group {
        flex-direction: column;
        align-items: stretch;
    }

    button.btn-primary {
        margin-top: 0;
    }
}

/* Shared Header Styles */
header {
    background: rgba(15, 23, 42, 0.8) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    margin-bottom: 2rem;
    text-align: left;
    /* Override local style */
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    width: 100%;
}

.logo {
    font-family: 'HandelGothic BT', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    font-family: 'Inter', sans-serif;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 1.2rem;
    margin-left: 2rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-size: 1.1rem;
    transition: all 0.3s;
    text-decoration: none;
}

.social-icons a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.social-icons a.youtube:hover {
    background: #FF0000;
    border-color: #FF0000;
}

.social-icons a.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: #bc1888;
}

.social-icons a.facebook:hover {
    background: #1877F2;
    border-color: #1877F2;
}

/* Responsive for header */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .social-icons {
        margin-left: auto;
    }
}