﻿/* Mobile-first styles */
body {
    font-size: 16px;
    line-height: 1.5;
}

.form-control, .custom-select {
    height: calc(1.5em + 1rem + 2px);
    font-size: 1rem;
    padding: 0.5rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}

label {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

small.text-muted {
    font-size: 0.85rem;
}

.title-row {
    flex-wrap: wrap;
    margin-left: 0;
    margin-right: 0;
}

    .title-row img {
        max-width: 100%;
    }

.tab-group {
    display: flex;
    width: 100%;
    border-radius: 0.25rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tab-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
}

    .tab-btn.btn-success {
        background-color: #28a745;
        color: white;
        border-bottom: 3px solid #218838;
    }

    .tab-btn.btn-outline-secondary {
        background-color: #f8f9fa;
        color: #6c757d;
        border-bottom: 3px solid transparent;
    }

    .tab-btn:hover, .tab-btn:focus {
        outline: none;
        box-shadow: inset 0 0 0 2px #28a745;
    }

    .tab-btn.active {
        font-weight: 600;
    }

    .tab-btn[aria-pressed="true"] {
        background-color: #28a745;
        color: white;
        border-bottom: 3px solid #218838;
    }

.modal-dialog {
    max-width: 90%;
}

.modal-content {
    padding: 0rounded;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modal-body {
    font-size: 1rem;
}

.chosen-container .chosen-single {
    height: calc(1.5em + 1rem + 2px);
    line-height: calc(1.5em + 1rem);
    font-size: 1rem;
}

.chosen-container .chosen-drop {
    width: 100%;
}

/* Medium devices and up */
@media (min-width: 768px) {
    .form-control, .custom-select {
        height: calc(1.5em + 0.75rem + 2px);
    }

    .btn-lg {
        padding: 0.5rem 1rem;
    }

    .tab-btn {
        padding: 0.5rem 1.5rem;
        font-size: 1.2rem;
    }

    .modal-dialog {
        max-width: 500px;
    }
}

/* Ensure footer doesn't overlap content */
#footer {
    min-height: 60px;
    width: 100%;
}

/* Prevent horizontal scrolling */
.container-fluid {
    overflow-x: hidden;
}
