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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 50%, #ff9a9e 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    padding: 40px;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

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

.icon {
    font-size: 60px;
    margin-bottom: 15px;
}

h1 {
    color: #ff6b9d;
    font-size: 28px;
    margin-bottom: 10px;
}

.subtitle {
    color: #999;
    font-size: 14px;
}

/* Estilos para o container do anúncio */
.ad-container {
    max-width: 728px;
    margin: 20px auto 30px;
    text-align: center;
    border-radius: 15px;
    overflow: hidden;
    background: white;
    padding: 10px;
}

.ad-container ins {
    margin: 0 auto;
    display: block;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab {
    flex: 1;
    min-width: 150px;
    padding: 12px 20px;
    background: #f5f5f5;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    color: #666;
}

.tab.active {
    background: linear-gradient(135deg, #ff6b9d 0%, #ffa4c9 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(255, 107, 157, 0.3);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s;
}

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

.mode-selector {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.mode-card {
    flex: 1;
    min-width: 150px;
    padding: 20px;
    border: 3px solid #ffe0e9;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.mode-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.mode-card.selected {
    border-color: #ff6b9d;
    background: linear-gradient(135deg, #fff5f7 0%, #ffe8f0 100%);
}

.mode-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.mode-title {
    font-weight: 600;
    color: #ff6b9d;
    margin-bottom: 5px;
}

.mode-desc {
    font-size: 12px;
    color: #999;
}

.input-group {
    margin-bottom: 25px;
}

label {
    display: block;
    color: #555;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

input[type="number"] {
    width: 100%;
    padding: 15px;
    border: 2px solid #ffe0e9;
    border-radius: 15px;
    font-size: 16px;
    transition: all 0.3s;
    background: #fafafa;
}

input[type="number"]:focus {
    outline: none;
    border-color: #ff6b9d;
    background: white;
}

.date-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #ffe0e9;
    border-radius: 15px;
    font-size: 16px;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.date-input:hover {
    border-color: #ff6b9d;
}

.calendar-popup {
    display: none;
    position: absolute;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 20px;
    z-index: 1000;
    margin-top: 10px;
}

.calendar-popup.show {
    display: block;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.calendar-header button {
    background: #ff6b9d;
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
}

.calendar-month {
    font-weight: 600;
    color: #333;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day-header {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #999;
    padding: 5px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.calendar-day:hover {
    background: #ffe0e9;
}

.calendar-day.other-month {
    color: #ccc;
}

.calendar-day.selected {
    background: #ff6b9d;
    color: white;
}

.btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #ff6b9d 0%, #ffa4c9 100%);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 25px rgba(255, 107, 157, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(255, 107, 157, 0.4);
}

.results {
    margin-top: 30px;
    display: none;
}

.calendar-visual {
    background: #fafafa;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
}

.calendar-visual-header {
    text-align: center;
    margin-bottom: 20px;
}

.calendar-visual-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.calendar-visual-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.cal-day-header {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #999;
    padding: 8px;
}

.cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    position: relative;
    background: white;
    border: 2px solid transparent;
    flex-direction: column;
    gap: 2px;
}

.cal-day.other-month {
    color: #ddd;
}

.cal-day.menstruation {
    background: linear-gradient(135deg, #ff6b6b, #ff8787);
    color: white;
    border-color: #ff5252;
    border-width: 3px;
    border-style: solid;
}

.cal-day.menstruation::before {
    content: '●';
    font-size: 8px;
    position: absolute;
    top: 2px;
    right: 2px;
}

.cal-day.fertile {
    background: linear-gradient(135deg, #ffc9e0, #ffd6e8);
    color: #ff6b9d;
    border-color: #ff6b9d;
    border-width: 3px;
    border-style: dashed;
    font-weight: 700;
}

.cal-day.fertile::after {
    content: '✿';
    font-size: 10px;
    position: absolute;
    bottom: 2px;
    right: 2px;
    opacity: 0.7;
}

.cal-day.ovulation {
    background: linear-gradient(135deg, #ff6b9d, #ff85b3);
    color: white;
    border-color: #ff4081;
    font-weight: 700;
    border-width: 4px;
    border-style: double;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #ff4081;
}

.cal-day.ovulation::before {
    content: '★';
    font-size: 12px;
    position: absolute;
    top: 1px;
    right: 2px;
}

.cal-day.today {
    box-shadow: 0 0 0 3px #4fc3f7;
}

.cal-day.today::after {
    content: '▼';
    font-size: 8px;
    position: absolute;
    top: 1px;
    left: 2px;
    color: #4fc3f7;
}

.legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 6px;
}

.chart-container {
    background: #fafafa;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
}

.chart-title {
    text-align: center;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 200px;
    gap: 3px;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(to top, #ff6b9d, #ffa4c9);
    border-radius: 8px 8px 0 0;
    position: relative;
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid #ff6b9d;
}

.chart-bar.high-fertility {
    background: linear-gradient(to top, #ff4081, #ff6b9d);
    border: 3px solid #ff4081;
    box-shadow: 0 -2px 10px rgba(255, 64, 129, 0.4);
}

.chart-bar.high-fertility::after {
    content: '★';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    color: #ff4081;
    font-size: 12px;
}

.chart-bar:hover {
    opacity: 0.8;
    transform: scaleY(1.05);
}

.chart-label {
    text-align: center;
    font-size: 10px;
    color: #999;
    margin-top: 5px;
}

.symptoms-container {
    background: linear-gradient(135deg, #fff5f7 0%, #ffe8f0 100%);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
}

.symptoms-title {
    font-weight: 600;
    color: #ff6b9d;
    margin-bottom: 15px;
    font-size: 18px;
}

.symptom-item {
    background: white;
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.symptom-icon {
    font-size: 24px;
}

.symptom-info {
    flex: 1;
}

.symptom-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 3px;
}

.symptom-date {
    font-size: 12px;
    color: #999;
}

.info-section {
    margin-bottom: 30px;
}

.info-title {
    font-size: 22px;
    font-weight: 600;
    color: #ff6b9d;
    margin-bottom: 15px;
}

.info-card {
    background: linear-gradient(135deg, #fff5f7 0%, #ffe8f0 100%);
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 15px;
}

.info-card h3 {
    color: #ff6b9d;
    margin-bottom: 10px;
    font-size: 16px;
}

.info-card p {
    color: #666;
    line-height: 1.6;
    font-size: 14px;
}

.info-card ul {
    margin-left: 20px;
    color: #666;
    line-height: 1.8;
}

.faq-item {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.faq-item:hover {
    background: #f0f0f0;
}

.faq-question {
    font-weight: 600;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    color: #666;
    line-height: 1.6;
    margin-top: 10px;
    display: none;
}

.faq-item.open .faq-answer {
    display: block;
}

.faq-toggle {
    font-size: 20px;
    color: #ff6b9d;
}

.alert-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
}

.alert-box p {
    color: #856404;
    font-size: 13px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .container {
        padding: 25px;
    }
    
    .mode-selector {
        flex-direction: column;
    }
    
    .tabs {
        flex-direction: column;
    }
    
    h1 {
        font-size: 24px;
    }
    
    /* Responsividade para o anúncio em dispositivos móveis */
    .ad-container {
        max-width: 100%;
        margin: 15px auto 25px;
        padding: 8px;
    }
    
    .ad-container ins {
        width: 100% !important;
        height: auto !important;
    }
}

@media (max-width: 480px) {
    .ad-container {
        margin: 10px auto 20px;
        padding: 5px;
        border-radius: 10px;
    }
}