/* Main container styling to match CleanPDF */
        .date-calculator-container {
            max-width: 900px;
            margin: 0 auto;
            padding: 0 1rem;
        }
        
        .calculator-section {
            background: white;
            border-radius: 12px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.07);
            border: 2px solid #e2e8f0;
            padding: 2rem;
            margin-bottom: 2rem;
            transition: transform 0.3s ease;
        }
        
        .calculator-section:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 12px rgba(0,0,0,0.1);
        }
        
        .section-title {
            color: #2d3748;
            font-size: 1.5rem;
            margin-bottom: 0.5rem;
            font-weight: 600;
        }
        
        .section-subtitle {
            color: #718096;
            margin-bottom: 1.5rem;
            font-size: 0.95rem;
        }
        
        /* Form styling */
        .form-row {
            display: flex;
            align-items: center;
            margin-bottom: 1.5rem;
            gap: 1rem;
            flex-wrap: wrap;
        }
        
        .form-label {
            min-width: 120px;
            text-align: right;
            font-size: 1rem;
            color: #4a5568;
            font-weight: 500;
        }
        
        .input-group {
            display: flex;
            gap: 0.5rem;
            align-items: center;
            flex-wrap: wrap;
        }
        
        select, input[type="number"] {
            padding: 0.75rem;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            font-size: 1rem;
            background: white;
            color: #2d3748;
            transition: all 0.2s;
        }
        
        select {
            min-width: 100px;
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
            background-position: right 0.5rem center;
            background-repeat: no-repeat;
            background-size: 1.5em 1.5em;
            padding-right: 2.5rem;
            -webkit-appearance: none;
            -moz-appearance: none;
            appearance: none;
        }
        
        input[type="number"] {
            width: 100px;
            text-align: center;
        }
        
        select:focus, input[type="number"]:focus {
            outline: none;
            border-color: #4299e1;
            box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
        }
        
        .today-text {
            margin-left: 10px;
            color: #4299e1;
            text-decoration: underline;
            cursor: pointer;
            font-size: 0.9rem;
            font-weight: 500;
        }
        
        .today-text:hover {
            color: #2b6cb0;
        }
        
        /* Checkbox styling */
        .checkbox-row {
            display: flex;
            align-items: center;
            margin: 1rem 0 1.5rem 135px;
            gap: 0.75rem;
        }
        
        .checkbox-row input[type="checkbox"] {
            width: 20px;
            height: 20px;
            cursor: pointer;
            accent-color: #4299e1;
        }
        
        .checkbox-row label {
            cursor: pointer;
            font-size: 0.95rem;
            color: #4a5568;
        }
        
        /* Button styling matching CleanPDF */
        .button-row {
            display: flex;
            gap: 1rem;
            margin-left: 135px;
            margin-top: 1.5rem;
        }
        
        .btn {
            padding: 0.875rem 2rem;
            border: none;
            border-radius: 8px;
            font-size: 1rem;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            text-decoration: none;
        }
        
        .btn-calculate {
            background: linear-gradient(135deg, #4299e1, #2b6cb0);
            color: white;
            box-shadow: 0 4px 12px rgba(66, 153, 225, 0.4);
        }
        
        .btn-calculate:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(66, 153, 225, 0.5);
            background: linear-gradient(135deg, #3182ce, #2c5282);
        }
        
        .btn-settings {
            background: transparent;
            color: #4299e1;
            border: 1px solid #e2e8f0;
        }
        
        .btn-settings:hover {
            background: #f7fafc;
            border-color: #cbd5e0;
        }
        
        /* Operator toggle */
        .operator-toggle {
            display: flex;
            gap: 0.5rem;
            margin-left: 135px;
            margin-bottom: 1.5rem;
        }
        
        .operator-btn {
            width: 48px;
            height: 48px;
            border: 2px solid #e2e8f0;
            background: white;
            border-radius: 8px;
            cursor: pointer;
            font-size: 1.5rem;
            font-weight: bold;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .operator-btn.active {
            background: linear-gradient(135deg, #4299e1, #2b6cb0);
            color: white;
            border-color: #4299e1;
        }
        
        .operator-btn:hover:not(.active) {
            border-color: #cbd5e0;
            background: #f7fafc;
        }
        
        .time-unit {
            font-size: 0.9rem;
            color: #718096;
            margin-left: 0.5rem;
        }
        
        /* Results styling */
        .result {
            margin-top: 2rem;
            padding: 1.5rem;
            background: linear-gradient(135deg, #f0fdf4, #dcfce7);
            border-radius: 12px;
            border: 2px solid #86efac;
            display: none;
        }
        
        .result.show {
            display: block;
            animation: slideIn 0.3s ease;
        }
        
        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .result h3 {
            color: #166534;
            margin-bottom: 1rem;
            font-size: 1.2rem;
            font-weight: 600;
        }
        
        .result-item {
            padding: 0.5rem 0;
            color: #15803d;
            font-size: 1rem;
        }
        
        .result-item strong {
            color: #166534;
        }
        
        /* Age Calculator specific styles */
        .age-details {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1rem;
            margin-top: 1rem;
        }
        
        .age-box {
            background: white;
            border-radius: 8px;
            padding: 1rem;
            text-align: center;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
            border: 1px solid #e2e8f0;
        }
        
        .age-value {
            font-size: 2rem;
            font-weight: 700;
            color: #2d3748;
            margin-bottom: 0.25rem;
        }
        
        .age-label {
            font-size: 0.85rem;
            color: #718096;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        /* Settings modal */
        .settings-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            z-index: 1000;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(4px);
        }
        
        .settings-modal.show {
            display: flex;
            animation: fadeIn 0.2s ease;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        .settings-content {
            background: white;
            border-radius: 12px;
            padding: 2rem;
            max-width: 500px;
            width: 90%;
            max-height: 80vh;
            overflow-y: auto;
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        }
        
        .settings-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
            padding-bottom: 1rem;
            border-bottom: 2px solid #e2e8f0;
        }
        
        .settings-header h3 {
            color: #2d3748;
            font-size: 1.5rem;
            margin: 0;
            font-weight: 600;
        }
        
        .close-btn {
            background: none;
            border: none;
            font-size: 2rem;
            cursor: pointer;
            color: #718096;
            padding: 0;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 8px;
            transition: all 0.2s;
        }
        
        .close-btn:hover {
            background: #f7fafc;
            color: #2d3748;
        }
        
        .settings-section {
            margin-bottom: 1.5rem;
        }
        
        .settings-section h4 {
            color: #2d3748;
            margin-bottom: 1rem;
            font-size: 1.1rem;
            font-weight: 600;
        }
        
        .settings-option {
            display: flex;
            align-items: center;
            padding: 0.75rem;
            margin-bottom: 0.5rem;
            border-radius: 8px;
            background: #f8fafc;
            transition: all 0.2s;
        }
        
        .settings-option:hover {
            background: #edf2f7;
        }
        
        .settings-option input[type="checkbox"] {
            width: 20px;
            height: 20px;
            cursor: pointer;
            margin-right: 0.75rem;
            accent-color: #4299e1;
        }
        
        .settings-option label {
            cursor: pointer;
            font-size: 1rem;
            color: #4a5568;
            flex: 1;
        }
        
        .settings-option .day-label {
            font-weight: 500;
            color: #2d3748;
        }
        
        .btn-apply {
            background: linear-gradient(135deg, #48bb78, #38a169);
            color: white;
            border: none;
            padding: 0.875rem 2rem;
            border-radius: 8px;
            font-size: 1rem;
            cursor: pointer;
            width: 100%;
            font-weight: 600;
            transition: all 0.3s;
            margin-top: 1rem;
        }
        
        .btn-apply:hover {
            background: linear-gradient(135deg, #38a169, #2f855a);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(56, 161, 105, 0.4);
        }
        
        /* Responsive adjustments */
        @media (max-width: 768px) {
            .form-row {
                flex-direction: column;
                align-items: flex-start;
            }
            
            .form-label {
                text-align: left;
                min-width: auto;
                margin-bottom: 0.5rem;
            }
            
            .checkbox-row,
            .button-row,
            .operator-toggle {
                margin-left: 0;
            }
            
            .button-row {
                flex-direction: column;
                width: 100%;
            }
            
            .btn {
                width: 100%;
            }
            
            .operator-toggle {
                justify-content: center;
            }
            
            .calculator-section {
                padding: 1.5rem;
            }
            
            .today-text {
                margin-left: 0;
                margin-top: 0.5rem;
                align-self: flex-start;
            }
            
            .age-details {
                grid-template-columns: repeat(2, 1fr);
            }
        }
        
        @media (max-width: 480px) {
            .age-details {
                grid-template-columns: 1fr;
            }
            
            .age-box {
                padding: 0.75rem;
            }
            
            .age-value {
                font-size: 1.75rem;
            }
        }
        
        /* Animation for spinner */
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }