/**
 * JLS Server Admin - Custom Styles
 * Mobile-first responsive design
 */

/* Base Styles */
body {
    font-size: 16px;
    line-height: 1.6;
}

/* Ensure proper spacing on mobile */
@media (max-width: 767px) {
    body {
        font-size: 14px;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Touch-friendly buttons */
.btn {
    min-height: 44px;
    padding: 0.5rem 1rem;
}

.btn-sm {
    min-height: 38px;
    padding: 0.375rem 0.75rem;
}

/* Card styling */
.card {
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.card-header {
    border-radius: 8px 8px 0 0;
}

/* Table responsiveness */
.table-responsive {
    border-radius: 8px;
}

@media (max-width: 767px) {
    .table {
        font-size: 0.875rem;
    }

    .table td,
    .table th {
        padding: 0.5rem;
    }
}

/* Navbar */
.navbar-brand {
    font-weight: bold;
}

@media (max-width: 991px) {
    .navbar-collapse {
        background-color: rgba(0, 0, 0, 0.1);
        padding: 1rem;
        border-radius: 8px;
        margin-top: 0.5rem;
    }
}

/* Statistics Cards */
.opacity-50 {
    opacity: 0.5;
}

/* Forms */
.form-control,
.form-select {
    min-height: 44px;
}

.form-control-sm {
    min-height: 38px;
}

/* Alert styling */
.alert {
    border-radius: 8px;
}

/* Badge styling */
.badge {
    padding: 0.35em 0.65em;
    font-size: 85%;
}

/* Footer */
footer {
    border-top: 1px solid #dee2e6;
    margin-top: 3rem;
}

/* Code blocks */
code {
    padding: 0.2rem 0.4rem;
    background-color: #f8f9fa;
    border-radius: 4px;
}

/* Loading spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Custom utilities */
.bg-opacity-25 {
    background-color: rgba(0, 0, 0, 0.25) !important;
}

/* Ensure dropdown menus are readable on mobile */
@media (max-width: 767px) {
    .dropdown-menu {
        font-size: 0.9rem;
    }
}

/* Status indicators */
.status-active {
    color: #28a745;
}

.status-inactive {
    color: #6c757d;
}

/* Pagination */
.pagination {
    flex-wrap: wrap;
}

.page-link {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile-friendly list groups */
@media (max-width: 767px) {
    .list-group-item {
        padding: 1rem 0.75rem;
    }
}

/* Responsive text */
.text-md-left {
    text-align: left !important;
}

.text-md-right {
    text-align: right !important;
}

@media (max-width: 767px) {
    .text-md-left,
    .text-md-right {
        text-align: center !important;
    }
}

/* No horizontal scroll */
body {
    overflow-x: hidden;
}

.row {
    margin-left: 0;
    margin-right: 0;
}

/* Accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .navbar,
    .btn,
    footer {
        display: none;
    }
}
