/* Global styling */
body {
    background-color: #f8f9fa;
    color: #212529;
}

/* Typography enhancements */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 600;
    color: #212529;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

/* Enhanced tables */
.table {
    background-color: white;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border-radius: 0.375rem;
    overflow: hidden;
}

.table thead {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.table thead th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    padding: 1rem;
    border-bottom: none;
}

.table tbody tr {
    border-bottom: 1px solid #e9ecef;
}

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

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
}

/* Card enhancements */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
    padding: 1rem 1.25rem;
}

.card-body {
    padding: 1.5rem;
}

/* Form enhancements */
.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #495057;
}

.form-control, .form-select {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus, .form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Required field styling */
.form-control:required,
.form-select:required {
    border-left: 3px solid #dc3545;
}

/* Add asterisk to labels of required fields using :has() selector */
label:has(+ .form-control:required)::after,
label:has(+ .form-select:required)::after {
    content: " *";
    color: #dc3545;
    font-weight: bold;
}

/* Button enhancements */
.btn {
    margin-top: 2px;
    padding: 0.75rem 1.25rem;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: all 0.15s ease-in-out;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    transform: translateY(-1px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-success {
    background-color: #198754;
    border-color: #198754;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

/* Alert enhancements */
.alert {
    border: none;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
}

.alert-danger {
    background-color: #f8d7da;
    color: #842029;
}

.alert-info {
    background-color: #cff4fc;
    color: #055160;
}

/* Status badges */
.badge {
    padding: 0.375em 0.75em;
    font-weight: 600;
    border-radius: 0.375rem;
}

/* Visual indicators for user-edited fields */
.user-edited {
    border-left: 4px solid #0d6efd !important;
    background-color: #e7f1ff !important;
    padding-left: 1rem !important;
}

.user-edited-label {
    color: #0d6efd !important;
    font-weight: 600 !important;
}

/* Disabled button styling */
button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Screen reader only class */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Navigation enhancements */
.navbar {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
}

.navbar-nav .nav-link {
    padding: 0.5rem 1rem;
    font-weight: 500;
    color: white;
    transition: all 0.15s ease-in-out;
}

.navbar-nav .nav-link:hover {
    color: #0d6efd !important;
}

/* Enhanced active navigation item styling */
.navbar-nav .nav-link.active {
    position: relative;
    font-weight: 600;
    color: #0d6efd !important;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #0d6efd;
}

/* Enhanced dropdown */
.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 0.375rem;
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.15s ease-in-out;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #0d6efd;
}

.dropdown-item.active {
    background-color: #0d6efd;
    color: white;
    font-weight: 600;
}

.dropdown-item.active:hover {
    background-color: #0b5ed7;
}

/* Breadcrumb styling */
.breadcrumb {
    background-color: white;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 0.375rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "→";
    font-weight: bold;
    color: #6c757d;
}

.breadcrumb-item a {
    text-decoration: none;
    color: #0d6efd;
    font-weight: 500;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

/* Footer enhancements */
.footer {
    background-color: #212529 !important;
    color: #052341dc;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer .text-muted {
    color: #04213d !important;
}

/* List styling */
ul[aria-label="Issue Metadata"] {
    list-style: none;
    padding: 0;
    background-color: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 2rem;
}

ul[aria-label="Issue Metadata"] li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

ul[aria-label="Issue Metadata"] li:last-child {
    border-bottom: none;
}

/* Article sections */
article {
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 2rem;
}

/* Screenshot container */
.screenshots-container {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Links */
a {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 500;
}

a:hover {
    text-decoration: underline;
}

/* Back link styling */
a[href*="Back to"] {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.5rem 1rem;
    background-color: #f8f9fa;
    border-radius: 0.375rem;
    transition: all 0.15s ease-in-out;
}

a[href*="Back to"]:hover {
    background-color: #e9ecef;
    text-decoration: none;
    transform: translateX(-2px);
}

/* Main container spacing */
main.container {
    min-height: calc(100vh - 200px);
}

/* Welcome page styling */
.text-center h1 {
    color: #212529;
    margin-bottom: 2rem;
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: #495057;
}

/* Action links */
p a[href*="Add new"] {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #0d6efd;
    color: white !important;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.15s ease-in-out;
    margin-bottom: 1.5rem;
}

p a[href*="Add new"]:hover {
    background-color: #0b5ed7;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}
 .help-text{
    margin-left: 5px;
    padding: 5px;
    border: #198754 solid 1px;
    background-color: #e9fce7dc;
 }
