/* Custom styles for the Sports Betting Tracker */
html {
    position: relative;
    min-height: 100%;
}

body {
    background-color: #f8f9fa;
    margin-bottom: 120px; /* Footer height + padding */
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100px;
    background-color: white;
    line-height: 1.5;
    padding: 20px 0;
}

.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    padding: 0.75rem 1.25rem;
}

.text-success {
    font-weight: bold;
}

.text-danger {
    font-weight: bold;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    body {
        margin-bottom: 160px;
    }

    .footer {
        height: 140px;
    }

    .table-responsive {
        margin-bottom: 2rem;
    }

    .container {
        padding-bottom: 2rem;
    }

    /* Improved button groups on mobile */
    .btn-group {
        margin-bottom: 0.5rem;
        display: flex !important;
        width: 100%;
    }

    .btn-group .btn {
        flex: 1;
    }

    /* Better form layout on mobile */
    .row.g-3 > [class*="col-"] {
        margin-bottom: 1rem;
    }

    /* Improved table views on mobile */
    .table td {
        white-space: normal !important;
    }

    /* Better spacing for action buttons */
    .btn-group-sm {
        display: flex;
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    /* Mobile-friendly filters */
    .filter-section {
        margin-bottom: 1rem;
    }

    /* Adjust modal dialogs for mobile */
    .modal-dialog {
        margin: 0.5rem;
    }
}

/* Ensure footer buy me a beer button is responsive */
.footer .bmc-btn-container {
    text-align: right;
}

@media (max-width: 576px) {
    .footer .bmc-btn-container {
        text-align: center;
        margin-top: 1rem;
    }
    
    .footer .row {
        flex-direction: column;
        text-align: center;
    }
}
