
:root {
    --primary-color: #2c7da0;
    --primary-light: #a8dadc;
    --primary-dark: #1d3557;
    --secondary-color: #2a9d8f;
    --accent-color: #e63946;
    --light-color: #f1faee;
    --dark-color: #1d3557;
    --success-color: #2a9d8f;
    --warning-color: #e9c46a;
    --danger-color: #e63946;
    --info-color: #457b9d;
    --purple-color: #8338ec;
    --border-radius: 10px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
    color: var(--dark-color);
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Custom Divider */
.divider-custom {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 25px 0;
}

.divider-custom-line {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
}

.divider-custom-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0 15px;
}

/* Calculator Card */
.calculator-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
    margin-bottom: 40px;
}

.calculator-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.calculator-card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 20px 30px;
    position: relative;
    overflow: hidden;
}

.calculator-card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(30deg);
}

.calculator-card-body {
    padding: 30px;
}

/* Form Styling */
.form-floating > .form-control {
    height: 60px;
    padding: 1rem 0.75rem;
}

.form-floating > label {
    padding: 1rem 0.75rem;
}

.custom-input {
    border: 2px solid #e1e1e1;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.custom-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(44, 125, 160, 0.25);
}

.form-floating > .custom-input:focus ~ label,
.form-floating > .custom-input:not(:placeholder-shown) ~ label {
    color: var(--primary-color);
    transform: scale(0.85) translateY(-0.75rem) translateX(0.15rem);
}

.input-focused label {
    color: var(--primary-color) !important;
    font-weight: 500;
}

/* Button Styling */
.btn-calculate {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 30px;
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-calculate:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(42, 157, 143, 0.3);
    color: white;
}

.btn-calculate::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    opacity: 0;
    transition: var(--transition);
}

.btn-calculate:hover::after {
    opacity: 1;
}

.btn-text, .btn-icon {
    position: relative;
    z-index: 1;
}

.btn-icon {
    margin-left: 10px;
    transition: var(--transition);
}

.btn-calculate:hover .btn-icon {
    transform: translateX(5px);
}

/* Results Styling */
.result-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.result-card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 15px 20px;
    position: relative;
    overflow: hidden;
}

.result-card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(30deg);
}

.result-card-body {
    padding: 20px;
}

.list-group-item {
    border-left: none;
    border-right: none;
    padding: 15px 20px;
    transition: var(--transition);
}

.list-group-item:first-child {
    border-top: none;
}

.list-group-item:last-child {
    border-bottom: none;
}

.badge {
    font-weight: 500;
    padding: 8px 15px;
    transition: var(--transition);
}

.badge:hover {
    transform: scale(1.1);
}

.highlight-item {
    background-color: rgba(42, 157, 143, 0.05);
    border-left: 4px solid var(--success-color);
}

/* Summary Cards */
.summary-card {
    border-radius: var(--border-radius);
    padding: 20px;
    display: flex;
    align-items: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
}

.summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.summary-icon {
    font-size: 2.5rem;
    margin-right: 15px;
    background: rgba(255, 255, 255, 0.2);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.summary-content {
    flex: 1;
}

.summary-title {
    font-size: 0.9rem;
    margin-bottom: 5px;
    opacity: 0.9;
}

.summary-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

/* Modal Styling */
.modal-content {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-bottom: none;
    padding: 20px 30px;
}

.modal-title {
    font-weight: 600;
}

.modal-body {
    padding: 30px;
}

.modal-footer {
    border-top: none;
    padding: 20px 30px;
}

.btn-close {
    color: white;
    opacity: 0.8;
    transition: var(--transition);
}

.btn-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

/* Accordion Styling */
.accordion-item {
    border: none;
    margin-bottom: 10px;
    border-radius: var(--border-radius) !important;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.accordion-button {
    padding: 15px 20px;
    background-color: white;
    font-weight: 600;
    color: var(--dark-color);
    box-shadow: none !important;
    transition: var(--transition);
}

.accordion-button:not(.collapsed) {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.accordion-button:hover {
    background-color: var(--light-color);
}

.accordion-body {
    padding: 20px;
    background-color: white;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%232c7da0'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transition: var(--transition);
}

/* Table Styling */
.table {
    margin-bottom: 0;
}

.table th {
    font-weight: 600;
    color: var(--primary-dark);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(44, 125, 160, 0.05);
}

.table-hover tbody tr:hover {
    background-color: rgba(44, 125, 160, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .calculator-card-body, .result-card-body, .modal-body {
        padding: 20px;
    }
    
    .summary-icon {
        font-size: 2rem;
        width: 50px;
        height: 50px;
    }
    
    .summary-value {
        font-size: 1.2rem;
    }
}

@media (max-width: 767px) {
    .calculator-card-body, .result-card-body {
        padding: 15px;
    }
    
    .form-floating > .form-control {
        height: 55px;
    }
    
    .summary-card {
        padding: 15px;
    }
    
    .summary-icon {
        font-size: 1.5rem;
        width: 40px;
        height: 40px;
        margin-right: 10px;
    }
    
    .summary-title {
        font-size: 0.8rem;
    }
    
    .summary-value {
        font-size: 1rem;
    }
    
    .badge {
        padding: 5px 10px;
        font-size: 0.8rem;
    }
}

/* Print Styles */
@media print {
    .calculator-card, .btn, .modal-footer {
        display: none !important;
    }
    
    .results-container {
        display: block !important;
    }
    
    .result-card {
        box-shadow: none;
        margin-bottom: 30px;
        page-break-inside: avoid;
    }
    
    .result-card-header {
        background: #f0f0f0 !important;
        color: #333 !important;
    }
    
    .summary-card {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
    
    .badge {
        border: 1px solid #ddd;
        color: #333 !important;
        background-color: transparent !important;
    }
}
