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

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --dark-gradient: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    --light-bg: #f8f9fa;
    --card-bg: #ffffff;
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --border-color: #e2e8f0;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--primary-gradient);
    min-height: 100vh;
    padding: 20px;
    color: var(--text-primary);
    line-height: 1.6;
}

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

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.title-icon {
    font-size: 3.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.95;
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.calculator-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(10px);
}

/* Input Section */
.input-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.label-icon {
    font-size: 1.2rem;
}

.date-input,
.time-input {
    padding: 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--light-bg);
}

.date-input:focus,
.time-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: white;
}

/* Quick Select Section */
.quick-select-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.quick-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quick-btn {
    padding: 10px 18px;
    background: var(--light-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.quick-btn:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.quick-btn:active {
    transform: translateY(0);
}

.date-selectors {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.selector-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.selector-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.year-select,
.month-select,
.day-select {
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--light-bg);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.year-select:focus,
.month-select:focus,
.day-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: white;
}

.date-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-hint {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
    font-style: italic;
}

/* Results Section */
.results-section {
    margin-top: 40px;
    animation: fadeIn 0.5s ease;
}

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

.hidden {
    display: none;
}

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

.results-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.result-card {
    background: var(--light-bg);
    border-radius: 16px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: #667eea;
}

.result-card.primary {
    background: var(--primary-gradient);
    color: white;
    grid-column: span 2;
}

.result-card.primary .result-value,
.result-card.primary .result-label {
    color: white;
}

.result-card.primary .result-value {
    font-size: 3.2rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.result-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    width: 100%;
    height: 80px;
}

.result-icon-svg {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15));
    transition: transform 0.3s ease;
}

.result-card:hover .result-icon-svg {
    transform: scale(1.08) rotate(3deg);
}

.result-card.primary .result-icon-svg {
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.25));
}

.cycle-badge {
    display: inline-block;
    background: rgba(102, 126, 234, 0.15);
    color: #667eea;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-right: 6px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.result-card.primary .cycle-badge {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.result-value {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.2;
    letter-spacing: 0.5px;
    font-variant-numeric: tabular-nums;
}

.result-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Additional Info/Card */
.additional-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-card {
    background: var(--secondary-gradient);
    color: white;
    border-radius: 16px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-md);
}

.info-icon {
    font-size: 2.5rem;
}

.info-content {
    flex: 1;
}

.info-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 5px;
}

.info-value {
    font-size: 1.3rem;
    font-weight: 600;
}

/* Features Section */
.features-section {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-lg);
}

.features-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--text-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.feature-item {
    text-align: center;
    padding: 20px;
    background: var(--light-bg);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.feature-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* Content Section */
.content-section {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    margin-top: 30px;
}

.content-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-align: center;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.content-text {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
}

.content-text p {
    margin-bottom: 15px;
}

.content-list {
    margin: 20px 0;
    padding-left: 30px;
    color: var(--text-secondary);
}

.content-list li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* FAQ Section */
.faq-section {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    margin-top: 30px;
}

.faq-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 30px;
    text-align: center;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background: var(--light-bg);
    border-radius: 12px;
    padding: 25px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #667eea;
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.faq-question {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.faq-answer {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* Calendar/Chart Section */
.calendar-reminder-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
    text-align: left;
}

/* Bookmark Banner */
.bookmark-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 16px 20px;
    margin: 20px auto 30px;
    max-width: 1200px;
    box-shadow: var(--shadow-lg);
    animation: slideDown 0.5s ease;
}

.bookmark-banner-content {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
}

.bookmark-banner-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.bookmark-banner-text {
    flex: 1;
    font-size: 1rem;
    line-height: 1.5;
}

.bookmark-banner-text strong {
    font-weight: 600;
}

.bookmark-banner-link {
    color: white;
    text-decoration: underline;
    font-weight: 500;
    margin-left: 8px;
    transition: opacity 0.3s ease;
}

.bookmark-banner-link:hover {
    opacity: 0.8;
}

.bookmark-banner-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
}

.bookmark-banner-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.bookmark-banner-close:active {
    transform: scale(0.95);
}

@keyframes slideDown {
+    from {
+        opacity: 0;
+        transform: translateY(-20px);
+    }
+    to {
+        opacity: 1;
+        transform: translateY(0);
+    }
}

/* Floating Navigation */
.floating-nav {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--card-bg);
    border-radius: 16px;
    padding: 20px 15px;
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    min-width: 140px;
    max-width: 160px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.floating-nav-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.nav-icon {
    font-size: 1.2rem;
}

.nav-title {
    font-size: 0.9rem;
}

.floating-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.floating-nav-list li {
    margin: 0;
    padding: 0;
}

.nav-link {
    display: block;
    padding: 10px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
}

.nav-link:hover {
    background: var(--light-bg);
    color: var(--text-primary);
    transform: translateX(-3px);
}

.nav-link.active {
    background: var(--primary-gradient);
    color: white;
    font-weight: 500;
    box-shadow: var(--shadow-md);
}

.nav-link.active::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: var(--primary-gradient);
    border-radius: 0 2px 2px 0;
}

/* Hide floating nav on mobile and tablet */
@media (max-width: 1024px) {
    .floating-nav {
        display: none !important;
    }
}

/* Feedback Section */
.feedback-section {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    margin-top: 30px;
}

.feedback-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    text-align: center;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feedback-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 1rem;
}

.feedback-form {
    max-width: 600px;
    margin: 0 auto;
}

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

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--light-bg);
    resize: vertical;
}

.form-textarea {
    min-height: 120px;
    line-height: 1.6;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: white;
}

.feedback-submit-btn {
    width: 100%;
    padding: 18px 30px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: var(--shadow-md);
    margin-top: 10px;
}

.feedback-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.feedback-submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.feedback-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.feedback-message {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.feedback-message-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.feedback-message-error {
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
    color: white;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: white;
    opacity: 0.9;
}

.footer-links {
    margin-top: 15px;
    font-size: 0.9rem;
}

.footer-link {
    color: white;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-link:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .title {
        font-size: 2rem;
    }

    .title-icon {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .calculator-card {
        padding: 25px;
    }

    .quick-buttons {
        justify-content: center;
    }

    .quick-btn {
        flex: 1 1 calc(50% - 5px);
        min-width: 120px;
    }

    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .result-card.primary {
        grid-column: span 2;
    }

    .result-value {
        font-size: 2rem;
    }
    
    .result-icon-container {
        height: 70px;
    }
    
    .result-icon-svg {
        width: 70px;
        height: 70px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-section,
    .faq-section {
        padding: 25px;
    }

    .content-title,
    .faq-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .title {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 10px;
    }

    .calculator-card {
        padding: 20px;
    }

    .quick-btn {
        flex: 1 1 100%;
        font-size: 0.85rem;
        padding: 8px 12px;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .result-card.primary {
        grid-column: span 1;
    }

    .additional-info {
        grid-template-columns: 1fr;
    }
    
    .result-icon-container {
        height: 64px;
    }
    
    .result-icon-svg {
        width: 64px;
        height: 64px;
    }
    
    .cycle-badge {
        font-size: 0.75rem;
        padding: 3px 8px;
    }

    .content-section,
    .faq-section {
        padding: 20px;
    }

    .content-title,
    .faq-title {
        font-size: 1.3rem;
    }
}


