/* Rent Calculator Styles */

.card {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.08);
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
}

.form-control, .form-select {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
    transform: translateY(-1px);
}

.input-group-sm > .form-control,
.input-group-sm > .form-select,
.input-group-sm > .input-group-text {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 6px;
}

.input-group-text {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

.btn-primary {
    border-radius: 6px;
    padding: 0.375rem 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.2);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline-secondary {
    border-radius: 6px;
    padding: 0.375rem 1rem;
    font-weight: 500;
}

.btn-outline-primary {
    border-radius: 6px;
    padding: 0.375rem 1rem;
    font-weight: 500;
}

.list-group-item {
    border-color: rgba(0,0,0,0.05);
    background: transparent;
}

.list-group-item:last-child {
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.progress {
    border-radius: 10px;
    background-color: #f0f0f0;
    height: 6px;
}

.progress-bar {
    border-radius: 10px;
    transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.alert {
    border-radius: 6px;
    border: none;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

.alert-sm {
    padding: 0.375rem 0.75rem;
}

.alert-success {
    background-color: rgba(25, 135, 84, 0.1);
    color: #198754;
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.alert-info {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
    border-radius: 6px;
}

.h3 {
    font-weight: 700;
    letter-spacing: -0.5px;
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.shadow-sm {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
}

.bg-light {
    background-color: #f8fafc !important;
}

.table-sm th,
.table-sm td {
    padding: 0.5rem 0.25rem;
}

.table-borderless tbody tr {
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.table-borderless tbody tr:last-child {
    border-bottom: none;
}

/* Small text utilities */
.small {
    font-size: 0.875rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease forwards;
}

/* Calculate button loading animation */
@keyframes buttonPulse {
    0% { transform: scale(1); }
    50% { transform: scale(0.98); }
    100% { transform: scale(1); }
}

.btn-primary.calculating {
    animation: buttonPulse 0.5s ease;
}

/* Section headers */
.border-bottom {
    border-color: rgba(0,0,0,0.1) !important;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    
    .card-body {
        padding: 1rem !important;
    }
    
    .h3 {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
    }
    
    /* Stack form inputs better on mobile */
    .row.g-3 > div {
        margin-bottom: 0.5rem;
    }
    
    /* Stack buttons on mobile */
    .d-flex.gap-2 {
        flex-direction: column;
    }
    
    .d-flex.gap-2 .btn {
        width: 100%;
    }
}

/* Hover effects for interactive elements */
.btn:hover {
    transform: translateY(-1px);
}

.form-control:hover {
    border-color: #adb5bd;
}

/* Utility classes */
.text-muted {
    color: #6c757d !important;
}

/* Highlight for totals */
.list-group-item:has(.text-primary) {
    background-color: rgba(13, 110, 253, 0.05);
}