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;
}

.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 60px;
}

.navbar-brand i {
  font-size: 1.5rem;
}

.card-header h5 {
  margin-bottom: 0;
}

.table-responsive {
  margin-bottom: 1rem;
}

.badge {
  font-size: 0.85rem;
}

/* Multi-tenant branding */
.navbar-text {
  font-style: italic;
  opacity: 0.9;
}

/* Improved card styles */
.card {
  border-radius: 0.5rem;
  border: none;
}

.card-header {
  border-radius: 0.5rem 0.5rem 0 0 !important;
  font-weight: 600;
}

/* Button improvements */
.btn-group-sm > .btn, .btn-sm {
  font-size: 0.875rem;
}

/* Table improvements */
.table thead {
  background-color: #f8f9fa;
}

.table-hover tbody tr:hover {
  background-color: #f8f9fa;
  cursor: pointer;
}

/* Status badges */
.badge.bg-success {
  background-color: #198754 !important;
}

.badge.bg-warning {
  background-color: #ffc107 !important;
  color: #000;
}

.badge.bg-danger {
  background-color: #dc3545 !important;
}

.badge.bg-info {
  background-color: #0dcaf0 !important;
  color: #000;
}

/* Alert improvements */
.alert {
  border-radius: 0.5rem;
  border-left: 4px solid;
}

.alert-success {
  border-left-color: #198754;
}

.alert-danger {
  border-left-color: #dc3545;
}

.alert-warning {
  border-left-color: #ffc107;
}

.alert-info {
  border-left-color: #0dcaf0;
}

/* Form improvements */
.form-control:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Shadow utilities */
.shadow-lg {
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

/* Dropdown improvements */
.dropdown-item {
  padding: 0.5rem 1rem;
}

.dropdown-item i {
  margin-right: 0.5rem;
  width: 1.25rem;
  text-align: center;
}

/* Login page improvements */
.card-header.bg-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

/* Mobile responsive improvements */
@media (max-width: 768px) {
  .navbar-brand {
    font-size: 1rem;
  }
  
  .navbar-text {
    display: block;
    margin-left: 0 !important;
    margin-top: 0.5rem;
  }
  
  .table-responsive {
    font-size: 0.875rem;
  }
  
  .btn-group-sm > .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
  }
}

/* Tooltip improvements */
[data-bs-toggle="tooltip"] {
  cursor: help;
  border-bottom: 1px dotted #6c757d;
}

/* Loading state */
.btn.loading {
  pointer-events: none;
  opacity: 0.65;
}

.btn.loading::after {
  content: "";
  display: inline-block;
  width: 1rem;
  height: 1rem;
  margin-left: 0.5rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
  to {
    transform: rotate(360deg);
  }
}

/* Consistent Page Headers */
.page-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #dee2e6;
}

.page-header i {
    font-size: 2rem;
    margin-right: 0.75rem;
    color: #0d6efd;
}

.page-header h1,
.page-header h2 {
    font-weight: bold;
    margin: 0;
    font-size: 2rem;
}

/* Rounded corners for table headers */
.table thead.table-dark th:first-child {
    border-top-left-radius: 0.375rem;
}

.table thead.table-dark th:last-child {
    border-top-right-radius: 0.375rem;
}

/* Modern Login Page Styling */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-card {
    width: 100%;
    max-width: 450px;
    padding: 2.5rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

    .login-header h1 {
        font-size: 2rem;
        font-weight: 700;
        color: #1a202c;
        margin-bottom: 0.5rem;
    }

    .login-header p {
        color: #718096;
        font-size: 0.95rem;
    }

.login-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .login-logo i {
        font-size: 2.5rem;
        color: white;
    }

.login-form .form-label {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.login-form .form-control {
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s;
}

    .login-form .form-control:focus {
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }

.login-form .btn-login {
    width: 100%;
    padding: 0.875rem;
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 0.5rem;
    color: white;
    transition: transform 0.2s, box-shadow 0.2s;
}

    .login-form .btn-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
    }

.login-links {
    text-align: center;
    margin-top: 1.5rem;
}

    .login-links a {
        color: #667eea;
        text-decoration: none;
        font-weight: 500;
        transition: color 0.2s;
    }

        .login-links a:hover {
            color: #764ba2;
            text-decoration: underline;
        }

.form-check-label {
    color: #4a5568;
    font-size: 0.9rem;
}

/* Remove default Identity styling on login page */
body.login-page {
    margin: 0;
    padding: 0;
}

    body.login-page .container {
        max-width: 100%;
        padding: 0;
    }

