/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff9f9;
}

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

/* Navigation - Handled by link.js */

/* Main Content */
.main-content {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

h1 {
    color: #d32f2f;
    text-align: center;
    margin-bottom: 30px;
}

/* Calculator */
.calculator-section {
    max-width: 1200px;
    margin: 0 auto;
}

.period-input {
    text-align: center;
    margin-bottom: 30px;
}

.cycle-input {
    width: 60px;
    height: 36px;
    text-align: center;
    border: 2px solid #ffcdd2;
    border-radius: 4px;
    margin: 0 10px;
    font-size: 16px;
}

.minus, .plus {
    color: #e57373;
    text-decoration: none;
    font-size: 20px;
    padding: 5px 10px;
}

.reset {
    color: #e57373;
    text-decoration: none;
    margin-left: 20px;
}

/* Calendar */
.calendar-container {
    margin: 20px auto;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.calendar-wrapper {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.calendar-header {
    background: #ffebee;
    padding: 10px;
    text-align: center;
    border-radius: 4px 4px 0 0;
    color: #d32f2f;
}

.calendar-header button {
    background: none;
    border: none;
    color: #e57373;
    font-size: 18px;
    cursor: pointer;
    padding: 0 15px;
}

.calendar-header span {
    margin: 0 15px;
    font-weight: bold;
}

.calendar-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.calendar-table th {
    background: #ffebee;
    color: #d32f2f;
    padding: 10px;
}

.calendar-table td {
    border: 1px solid #ffcdd2;
    padding: 10px;
    text-align: center;
    cursor: pointer;
}

/* Day Status Classes */
.selected {
    background: #51CCEE !important;
    color: white !important;
}

.safe {
    background: #CDFFCC !important;
    color: #187917 !important;
}

.ovulation {
    background: #FFCDCC !important;
    color: #DD000D !important;
}

.period {
    background: #FFDCA4 !important;
    color: #E55500 !important;
}

/* Legend */
.calendar-legend {
    margin-top: 20px;
    padding: 20px;
    background: #ffebee;
    border-radius: 4px;
}

.calendar-legend ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.calendar-legend li {
    display: flex;
    align-items: center;
}

.dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 8px;
}

.dot.selected { background: #51CCEE; }
.dot.safe { background: #CDFFCC; }
.dot.ovulation { background: #FFCDCC; }
.dot.period { background: #FFDCA4; }

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .main-content {
        padding: 15px;
    }
    
    .calendar-legend ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .calendar-wrapper {
        min-width: 100%;
    }
}

/* Additional Info Section */
.info-section {
    margin-top: 40px;
    padding: 20px;
    background: #ffebee;
    border-radius: 8px;
}

.info-section h2 {
    color: #d32f2f;
    margin-bottom: 15px;
}

.info-section ul {
    margin: 15px 0;
    padding-left: 20px;
}

.note {
    font-style: italic;
    color: #666;
    margin-top: 15px;
}

.hint {
    text-align: center;
    color: #666;
    margin: 10px 0;
}

.banner-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto 30px;
    text-align: center;
}

.banner-img {
    width: 100%;
    max-width: 500px;
    height: auto;
    max-height: 150px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Copyright Section */
.copyright {
    margin-top: 40px;
    text-align: center;
}

.copyright hr {
    margin: 20px 0;
}

.copyright a {
    color: #d32f2f;
    text-decoration: none;
}

.copyright a:hover {
    text-decoration: underline;
}