/* CSS Document */

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
            background-color: #f5f7fa;
            color: #333;
            line-height: 1.6;
            padding: 0;
            margin: 0;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }
        
        .headerr {
            background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
            color: white;
            padding: 25px 20px;
            text-align: center;
            border-radius: 0 0 12px 12px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            margin-bottom: 30px;
        }
        
        h1 {
            font-size: 2.2rem;
            margin-bottom: 10px;
            font-weight: 700;
        }
        
        .subtitle {
            font-size: 1.1rem;
            opacity: 0.9;
            max-width: 600px;
            margin: 0 auto;
        }
        
        .warning-banner {
            background-color: #fff3cd;
            border: 1px solid #ffeaa7;
            border-radius: 8px;
            padding: 12px 15px;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .calculator-section {
            display: flex;
            flex-direction: column;
            gap: 30px;
            margin-bottom: 40px;
        }
        
        @media (min-width: 768px) {
            .calculator-section {
                flex-direction: row;
            }
        }
        
        .input-card, .results-card {
            background: white;
            border-radius: 12px;
            padding: 25px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            flex: 1;
        }
        
        .input-card {
            max-width: 100%;
        }
        
        @media (min-width: 768px) {
            .input-card {
                max-width: 50%;
            }
        }
        
        .card-title {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 1.5rem;
            margin-bottom: 25px;
            color: #2a5298;
            border-bottom: 2px solid #f0f4f8;
            padding-bottom: 10px;
        }
        
        .card-title i {
            font-size: 1.3rem;
        }
        
        .state-search-container {
            position: relative;
            margin-bottom: 10px;
        }
        
        .state-search {
            width: 100%;
            padding: 12px 15px 12px 40px;
            border: 2px solid #e1e5eb;
            border-radius: 8px;
            font-size: 16px;
        }
        
        .state-search-icon {
            position: absolute;
            left: 12px;
            top: 50%;
            transform: translateY(-50%);
            color: #666;
        }
        
        .region-filter {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 15px;
        }
        
        .region-btn {
            padding: 6px 12px;
            background: #f8f9fa;
            border: 1px solid #dee2e6;
            border-radius: 20px;
            font-size: 0.85rem;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .region-btn:hover {
            background: #e9ecef;
        }
        
        .region-btn.active {
            background: #2a5298;
            color: white;
            border-color: #2a5298;
        }
        
        .form-group {
            margin-bottom: 20px;
        }
        
        label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: #444;
        }
        
        select, input {
            width: 100%;
            padding: 14px 15px;
            border: 2px solid #e1e5eb;
            border-radius: 8px;
            font-size: 16px;
            transition: all 0.3s;
        }
        
        select:focus, input:focus {
            outline: none;
            border-color: #2a5298;
            box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
        }
        
        .input-error {
            border-color: #dc3545 !important;
            background-color: #fff8f8;
        }
        
        .error-message {
            color: #dc3545;
            font-size: 0.875rem;
            margin-top: 5px;
            display: none;
        }
        
        .help-text {
            font-size: 0.85rem;
            color: #666;
            margin-top: 5px;
            font-style: italic;
        }
        
        .radio-group {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            margin-top: 10px;
        }
        
        .radio-option {
            flex: 1;
            min-width: 120px;
        }
        
        .radio-option input {
            display: none;
        }
        
        .radio-option label {
            display: block;
            padding: 12px 15px;
            background-color: #f8f9fa;
            border: 2px solid #e1e5eb;
            border-radius: 8px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s;
            font-weight: 500;
        }
        
        .radio-option input:checked + label {
            background-color: #2a5298;
            color: white;
            border-color: #2a5298;
        }
        
        .daily-inputs {
            display: none;
            background: #f8f9fa;
            padding: 15px;
            border-radius: 8px;
            margin-top: 15px;
        }
        
        .day-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
            padding-bottom: 10px;
            border-bottom: 1px dashed #dee2e6;
        }
        
        .day-row:last-child {
            border-bottom: none;
            margin-bottom: 0;
        }
        
        .day-label {
            width: 80px;
            font-weight: 500;
        }
        
        .day-input {
            width: 100px;
            padding: 8px;
            border: 1px solid #dee2e6;
            border-radius: 4px;
            text-align: center;
        }
        
        .save-settings {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-top: 15px;
            padding-top: 15px;
            border-top: 1px solid #eee;
        }
        
        .calculate-btn {
            width: 100%;
            padding: 16px;
            background: linear-gradient(to right, #2a5298, #1e3c72);
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 18px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            margin-top: 10px;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 10px;
        }
        
        .calculate-btn:hover {
            background: linear-gradient(to right, #1e3c72, #2a5298);
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(42, 82, 152, 0.2);
        }
        
        .calculate-btn:active {
            transform: translateY(0);
        }
        
        .results-card {
            display: flex;
            flex-direction: column;
        }
        
        .results-container {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }
        
        .result-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 0;
            border-bottom: 1px solid #f0f4f8;
        }
        
        .result-item:last-child {
            border-bottom: none;
        }
        
        .result-label {
            font-weight: 600;
            color: #555;
            font-size: 1.1rem;
        }
        
        .result-value {
            font-size: 1.5rem;
            font-weight: 700;
            color: #2a5298;
        }
        
        .total-period {
            background-color: #f0f7ff;
            padding: 25px;
            border-radius: 10px;
            margin-top: 20px;
            border: 2px dashed #2a5298;
        }
        
        .total-period .result-label {
            font-size: 1.3rem;
            margin-bottom: 15px;
            text-align: center;
            color: #1e3c72;
        }
        
        .period-breakdown {
            text-align: left;
        }
        
        .period-row {
            display: flex;
            justify-content: space-between;
            margin-bottom: 10px;
            padding-bottom: 8px;
            border-bottom: 1px dashed #c3d7f5;
        }
        
        .period-row.total {
            border-top: 2px solid #2a5298;
            border-bottom: none;
            padding-top: 12px;
            margin-top: 12px;
            font-weight: bold;
            font-size: 1.1rem;
        }
        
        .period-label {
            color: #555;
        }
        
        .period-amount {
            color: #2a5298;
            font-weight: 600;
        }
        
        .total-amount {
            color: #1e3c72;
            font-size: 1.2rem;
            font-weight: 700;
        }
        
        .state-info {
            background-color: #f8f9fa;
            border-radius: 10px;
            padding: 20px;
            margin-top: 25px;
            border-left: 5px solid #2a5298;
        }
        
        .state-info h3 {
            margin-bottom: 10px;
            color: #2a5298;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .info-item {
            display: flex;
            justify-content: space-between;
            padding: 8px 0;
            border-bottom: 1px dashed #e1e5eb;
        }
        
        .info-item:last-child {
            border-bottom: none;
        }
        
        .info-label {
            font-weight: 600;
            color: #555;
        }
        
        .info-value {
            color: #333;
        }
        
        .info-value.yes {
            color: #28a745;
            font-weight: 600;
        }
        
        .info-value.no {
            color: #dc3545;
            font-weight: 600;
        }
        
        .initial-message {
            text-align: center;
            padding: 40px 20px;
            color: #777;
            font-style: italic;
        }
        
        .success-banner {
            background-color: #d4edda;
            border: 1px solid #c3e6cb;
            border-radius: 8px;
            padding: 12px 15px;
            margin-bottom: 20px;
            display: none;
            align-items: center;
            gap: 10px;
        }
        
        .loading-spinner {
            display: none;
            text-align: center;
            padding: 20px;
        }
        
        .spinner {
            border: 3px solid #f3f3f3;
            border-top: 3px solid #2a5298;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            animation: spin 1s linear infinite;
            margin: 0 auto 10px;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        .footer-note {
            text-align: center;
            margin-top: 40px;
            padding: 20px;
            color: #666;
            font-size: 0.9rem;
            border-top: 1px solid #e1e5eb;
        }
        
        .footer-note a {
            color: #2a5298;
            text-decoration: none;
        }
        
        .footer-note a:hover {
            text-decoration: underline;
        }
        
        .example-buttons {
            display: flex;
            gap: 10px;
            margin-top: 15px;
        }
        
        .example-btn {
            flex: 1;
            padding: 10px;
            background: #e9ecef;
            border: 1px solid #dee2e6;
            border-radius: 6px;
            cursor: pointer;
            font-size: 0.9rem;
            text-align: center;
            transition: all 0.2s;
        }
        
        .example-btn:hover {
            background: #dee2e6;
        }
        
        .example-btn.active {
            background: #2a5298;
            color: white;
            border-color: #2a5298;
        }
        
        @media (max-width: 767px) {
            h1 {
                font-size: 1.8rem;
            }
            
            .card-title {
                font-size: 1.3rem;
            }
            
            .result-value {
                font-size: 1.3rem;
            }
            
            .total-period .result-label {
                font-size: 1.1rem;
            }
            
            .radio-group {
                flex-direction: column;
            }
            
            .radio-option {
                min-width: 100%;
            }
            
            .example-buttons {
                flex-direction: column;
            }
        }
