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

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

/* Container styles */
.container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Banner styles */
.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;
}

/* Headings */
h1, h2, h3 {
    text-align: center;
    color: #fd6b9a;
    margin: 15px 0;
}

/* Calculator section */
.calculator-section {
    padding: 20px;
    background-color: #fff5f7;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Form styles */
.input-group {
    margin-bottom: 20px;
}

.calculation-method {
    margin-bottom: 30px;
    padding: 15px;
    background-color: #fff5f7;
    border-radius: 8px;
}

.method-selection {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.method-selection label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #fd6b9a;
    font-weight: bold;
}

/* Input group styles */
.cycle-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.cycle-input-group input {
    width: 80px;
    text-align: center;
    margin-bottom: 0;
}

.cycle-input-group .minus,
.cycle-input-group .plus {
    color: #fd6b9a;
    text-decoration: none;
    font-size: 20px;
    padding: 0 10px;
}

.hint {
    display: block;
    color: #666;
    font-size: 14px;
    margin-top: 5px;
}

.input-wrapper input[type="date"],
.input-wrapper input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 2px solid #ffc2d1;
    border-radius: 5px;
    font-size: 16px;
    margin-bottom: 15px;
    transition: border-color 0.3s;
}

.input-wrapper input[type="date"]:focus,
.input-wrapper input[type="number"]:focus {
    border-color: #fd6b9a;
    outline: none;
}

/* Button styles */
.button-group {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 20px;
}

button.calculate-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    background-color: #fd6b9a;
    color: white;
    transition: background-color 0.3s;
}

button.calculate-btn:hover {
    background-color: #ff4d82;
}

button.reset-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    background-color: #ffc2d1;
    color: #fd6b9a;
    transition: background-color 0.3s;
}

button.reset-btn:hover {
    background-color: #ffadc2;
}

/* Results section */
.results {
    margin-top: 30px;
    padding: 20px;
    background-color: #fff5f7;
    border-radius: 8px;
    border-right: 5px solid #fd6b9a;
}

.results h2 {
    color: #fd6b9a;
    margin-bottom: 15px;
}

.results p {
    margin-bottom: 10px;
}

/* Result details section */
.result-details {
    margin: 20px 0;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.result-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    padding: 10px;
    border-bottom: 1px solid #ffc2d1;
}

.result-item i {
    flex-shrink: 0;
    color: #fd6b9a;
    margin-left: 15px;
    font-size: 20px;
    width: 24px;
    text-align: center;
    margin-top: 3px;
}

.result-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

/* Pregnancy days display */
.pregnancy-days {
    font-size: 24px;
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background-color: #ffeef2;
    border-radius: 8px;
}

.pregnancy-days .days {
    font-family: Georgia, serif;
    font-size: 36px;
    color: #fd6b9a;
    font-weight: bold;
    padding: 0 10px;
}

/* Link styles */
.link-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.pregnancy-link {
    color: #fd6b9a;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.pregnancy-link:hover {
    color: #ff4d82;
    text-decoration: underline;
}

/* Due date display */
.due-date-large {
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 28px;
    color: #fd6b9a;
    text-align: center;
    padding: 20px;
    margin: 20px 0;
    background-color: #ffeef2;
    border-radius: 8px;
    border: 2px solid #fd6b9a;
}

.due-date {
    font-family: Georgia, serif;
    direction: ltr;
    display: inline-block;
    margin-right: 8px;
}

/* Divider style */
.divider {
    border: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, #fd6b9a, transparent);
    margin: 30px 0;
}

/* Test periods section */
.test-periods {
    margin: 20px 0;
    padding: 15px;
    background-color: #ffeef2;
    border-radius: 8px;
}

.test-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px;
    background-color: white;
    border-radius: 5px;
}

.test-item i {
    color: #fd6b9a;
    margin-left: 10px;
}

/* Info section styles */
.info-section {
    margin-top: 30px;
    padding: 20px;
    background-color: #fff5f7;
    border-radius: 8px;
}

.info-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-section li {
    margin-bottom: 15px;
    padding-right: 30px;
    position: relative;
}

.info-section li i {
    position: absolute;
    right: 0;
    top: 5px;
    color: #fd6b9a;
}

/* Copyright section */
.copyright {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    color: #666;
    font-size: 12px;
}

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

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

/* Responsive design */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        padding: 15px;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    button {
        width: 100%;
    }

    .pregnancy-days {
        font-size: 20px;
    }

    .pregnancy-days .days {
        font-size: 32px;
    }

    .due-date-large {
        font-size: 24px;
    }
}