html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* Responsive Tables for Mobile */
@media (max-width: 767.98px) {
    .table-responsive-stack tr {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        border-bottom: 3px solid #ccc;
        display: block;
    }
    .table-responsive-stack td {
        float: left\9;
        width: 100%;
        display: block;
        text-align: left;
    }
}

/* Custom Styles for MPproject */
.card {
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: none;
    margin-bottom: 20px;
}

.navbar {
    padding: 1rem;
}

.btn {
    border-radius: 8px;
    padding: 8px 20px;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* iPad specific adjustments */
@media (min-width: 768px) and (max-width: 1024px) {
    .container {
        max-width: 95%;
    }
}

/* iPhone specific adjustments */
@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Sticky & Dark Table Headers (Global for all tables) */
.table thead tr:nth-child(1) th {
    position: sticky !important;
    top: 0 !important;
    z-index: 1021 !important;
    background-color: #2c3e50 !important;
    color: #ffffff !important;
    box-shadow: inset 0 -1px 0 rgba(255,255,255,0.1);
    vertical-align: middle !important;
}

.table thead tr:nth-child(2) th {
    position: sticky !important;
    top: 48px !important; /* Offset for the first row height */
    z-index: 1020 !important;
    background-color: #f8f9fa !important;
    box-shadow: inset 0 -2px 0 rgba(0,0,0,0.1);
    vertical-align: middle !important;
}
.table thead th, 
.table thead th a,
.table thead th span {
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Filter Row Styles */
.filter-row {
    background-color: #f8f9fa !important;
}

.filter-input {
    width: 100%;
    padding: 6px 10px;
    font-size: 0.8rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: #ffffff;
    transition: all 0.2s ease-in-out;
}

.filter-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52,152,219,0.25);
}

.filter-input::placeholder {
    color: #adb5bd;
    font-size: 0.7rem;
    opacity: 0.8;
}