/* Spinner Styles */
.spinner {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 1000;
}
.spinner.active {
    display: flex;
    justify-content: center;
    align-items: center;
}
.spinner-content {
    text-align: center;
}
.spinner-circle, .spinner-border {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #4299e1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Completion Message (if not using Bootstrap alert-success) */
.completion-message {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 4px;
}
.completion-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #28a745;
}
.checkmark {
    font-size: 1.2rem;
    font-weight: bold;
}

/* Loading Indicator (if not using Bootstrap spinner) */
.loading-indicator {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    color: #666;
}
.spinner.small {
    width: 20px;
    height: 20px;
    border-width: 2px;
}
.spinner.small::after {
    width: 16px;
    height: 16px;
    border-width: 2px;
}

/* Back to Top Button */
#backToTop {
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 1050;
    background-color: #3b82f6;
    border: none;
    width: 48px;
    height: 48px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

#backToTop:hover {
    background-color: #2563eb;
    box-shadow: 0 4px 16px rgba(66, 153, 225, 0.15);
}

#backToTop svg {
    width: 24px;
    height: 24px;
    fill: white;
}

/* Base Layout */
html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    flex: 1 0 auto;
}

/* Footer Styles */
.site-footer {
    flex-shrink: 0;
    width: 100%;
}

/* Footer Link Styles */
.site-footer a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.site-footer a:hover {
    color: var(--bs-primary);
    text-decoration: underline;
}

/* Custom Primary Color Override */
:root {
    --bs-primary: #005588;
    --bs-primary-rgb: 0, 85, 136;
}

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

.btn-primary:hover {
    background-color: #004466;
    border-color: #004466;
}

.bg-primary {
    background-color: #005588 !important;
}

.text-primary {
    color: #005588 !important;
}

.border-primary {
    border-color: #005588 !important;
}

.expiring-soon {
    color: red;
    font-weight: bold;
}

.registrar-details a {
  color: var(--bs-body-color-rgb);
  text-decoration: none;
}
.registrar-details a:hover {
  color: var(--bs-primary);
  text-decoration: underline;
}

.summary-custom {
    list-style: none;
    cursor: pointer;
}

/* Recent Lookups Styles */
.recent-lookups .list-group-item {
    border-left: none;
    border-right: none;
    transition: background-color 0.2s ease-in-out;
}

.recent-lookups .list-group-item:hover {
    background-color: #f8f9fa;
}

.recent-lookups .list-group-item:first-child {
    border-top: none;
}

.recent-lookups .list-group-item:last-child {
    border-bottom: none;
}

.recent-lookups .card-header {
    border-bottom: 1px solid #dee2e6;
}

.recent-lookups .badge {
    transition: transform 0.2s ease-in-out;
}

.recent-lookups .list-group-item:hover .badge {
    transform: scale(1.1);
}

/* Hero Image Styles */
.hero-image {
    width: 120px;
    height: 120px;
}