/* Custom CSS Styles for Interior Hub Legal Information Page */

/* Base font smoothing for better text rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Primary brand color */
:root {
    --primary-color: #009688;
    --background-light: #f5f8f8;
    --background-dark: #0f2321;
}

/* Tab functionality */
.tab-content {
    transition: opacity 0.3s ease-in-out;
}

.tab-content.hidden {
    display: none !important;
}

.tab-link {
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.tab-link:hover {
    color: var(--primary-color) !important;
}

.tab-link.active {
    color: var(--primary-color) !important;
    border-bottom-color: var(--primary-color) !important;
}

/* Custom button hover effects */
.btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: bold;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 14px 0 rgba(0, 150, 133, 0.39);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px 0 rgba(0, 150, 133, 0.5);
    transform: translateY(-1px);
}

/* Custom checkbox styling */
.custom-checkbox {
    appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #d1d5db;
    border-radius: 0.25rem;
    background-color: #f3f4f6;
    position: relative;
    cursor: pointer;
}

.custom-checkbox:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.custom-checkbox:checked::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.875rem;
    font-weight: bold;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Focus states for accessibility */
button:focus,
a:focus,
input:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Dark mode text colors */
.dark .text-primary {
    color: var(--primary-color);
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Dark mode scrollbar */
.dark ::-webkit-scrollbar-track {
    background: #2d2d2d;
}

.dark ::-webkit-scrollbar-thumb {
    background: #5a5a5a;
}

.dark ::-webkit-scrollbar-thumb:hover {
    background: #7a7a7a;
}

/* Animation for button interactions */
@keyframes buttonPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pulse-on-click:active {
    animation: buttonPulse 0.2s ease-in-out;
}

/* Mobile responsiveness improvements */
@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .text-3xl {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }
}

/* Loading state for buttons */
.btn-loading {
    position: relative;
    color: transparent;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Improved link styling */
a.link-primary {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: all 0.2s ease-in-out;
}

a.link-primary:hover {
    text-decoration-thickness: 2px;
    color: #00796b;
}

/* Status indicators */
.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-active {
    background-color: #10b981;
}

.status-inactive {
    background-color: #ef4444;
}

.status-pending {
    background-color: #f59e0b;
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease-in-out;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Text selection colors */
::selection {
    background-color: rgba(0, 150, 136, 0.3);
    color: #1f2937;
}

.dark ::selection {
    background-color: rgba(0, 150, 136, 0.4);
    color: #f9fafb;
}

/* Smooth content transitions */
.content-fade {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease-in-out;
}

.content-fade.active {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced number styling for privacy policy */
.text-primary.font-medium {
    font-weight: 600;
    min-width: 1.5rem;
    text-align: center;
}