/* Custom Styles for PWA Calculator */

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background-color: #f5f5f5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    flex: 1 0 auto;
    padding-bottom: 1rem;
}

/* Card styling */
.card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    margin-bottom: 20px;
}

.card-header {
    font-weight: bold;
    border-radius: 10px 10px 0 0 !important;
}


.card-header h5 {
    margin: 0;
    font-size: 1.1rem;
}

/* Input groups styling */
.input-group-text {
    min-width: 150px;
    font-weight: 500;
    background-color: #e9ecef;
}

/* Form controls */
.form-control,
.form-select {
    border: 1px solid #ced4da;
}

.form-control:focus,
.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Floating result card */
.result-floating {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #ffffff;
    border: 3px solid #0d6efd;
    border-radius: 15px;
    padding: 20px 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    min-width: 220px;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-floating h5 {
    color: #0d6efd;
    margin: 0;
    font-weight: bold;
    font-size: 1rem;
}

.result-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #0d6efd;
    margin: 0;
    font-family: 'Courier New', monospace;
}

/* Install button */
.install-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.install-button:hover {
    transform: scale(1.05);
    transition: transform 0.2s;
}

/* Reset button */
#reset-btn {
    min-width: 200px;
    font-weight: 600;
}

#reset-btn:hover {
    transform: scale(1.05);
    transition: transform 0.2s;
}

/* Checkbox styling */
.form-check-input {
    cursor: pointer;
    width: 1.2em;
    height: 1.2em;
}

.form-check-label {
    cursor: pointer;
    user-select: none;
}

/* Alert styling */
.alert {
    border-radius: 8px;
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .result-floating {
        top: 10px;
        right: 10px;
        padding: 15px 20px;
        min-width: 180px;
    }

    .result-number {
        font-size: 2rem;
    }

    .result-floating h5 {
        font-size: 0.9rem;
    }

    .input-group-text {
        min-width: 120px;
        font-size: 0.9rem;
    }

    .card-header h5 {
        font-size: 1rem;
    }

    .install-button {
        bottom: 10px;
        right: 10px;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 10px;
        padding-bottom: 180px;
    }

    .result-footer {
        padding: 10px 0;
    }

    .result-number {
        font-size: 1.8rem;
    }

    .result-footer h5 {
        font-size: 0.9rem;
    }

    .result-label {
        font-size: 0.8rem;
    }

    .status-badge {
        font-size: 0.8rem;
        padding: 5px 12px;
    }

    .status-icon {
        font-size: 1rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    .input-group-text {
        min-width: 100px;
        font-size: 0.85rem;
    }
}






/* test */


/* Analysis Tables Styling - Add this to your styles.css */

.analysis-table-wrapper {
    flex: 1;
    max-width: 350px;
    margin: 0 10px;
}

.table-sm {
    font-size: 0.9rem;
}

.table-sm th,
.table-sm td {
    padding: 0.4rem;
    vertical-align: middle;
}

.table-sm thead th {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
}

/* Summary Alert Styling */
.alert-primary {
    background-color: rgba(13, 110, 253, 0.1);
    border-color: #0d6efd;
}

.alert-primary strong {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .table-sm {
        font-size: 0.85rem;
    }

    .table-sm th,
    .table-sm td {
        padding: 0.35rem;
    }
}

@media (max-width: 576px) {
    .table-sm {
        font-size: 0.8rem;
    }

    .table-sm th,
    .table-sm td {
        padding: 0.3rem 0.5rem;
    }

    .alert-primary strong {
        font-size: 0.75rem;
    }

    .alert-primary .fs-5 {
        font-size: 1rem !important;
    }
}


.analysis-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    cursor: pointer;
    user-select: none;
    padding: 1rem !important;
}

.toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(0, 0, 0, 0.2);
    color: #000;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.toggle-btn:hover {
    background: rgba(0, 0, 0, 0.25);
    border-color: rgba(0, 0, 0, 0.3);
    transform: scale(1.1);
}

.toggle-btn:active {
    transform: scale(0.95);
}

h5 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #000;
}

.analysis-tables {
    max-height: 2000px;
    opacity: 1;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

.analysis-tables.collapsed {
    max-height: 0;
    opacity: 0;
}