/* Custom Styles - Smarta */

/* ===== Custom Text Selection ===== */
::selection {
    background-color: #1f2937; /* gray-800 */
    color: #ffffff;
}

::-moz-selection {
    background-color: #1f2937;
    color: #ffffff;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f3f4f6; /* gray-100 */
}

::-webkit-scrollbar-thumb {
    background: #9ca3af; /* gray-400 */
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6b7280; /* gray-500 */
}

/* ===== Custom Focus ===== */
*:focus-visible {
    outline: 2px solid #1f2937;
    outline-offset: 2px;
}

/* ===== Subtle Animations ===== */
/* ===== Link Hover Effects ===== */
a {
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: none;
}

a:hover,
a:active {
    text-decoration: underline;
}

/* Exception for styled buttons (no underline) */
a.inline-flex,
a.flex,
a.btn-primary,
a.btn-secondary,
a.btn-disabled,
button {
    text-decoration: none;
}

a.inline-flex:hover,
a.flex:hover,
a.btn-primary:hover,
a.btn-secondary:hover,
a.btn-disabled:hover {
    text-decoration: none;
    font-weight: 500;
}

/* ===== Card Hover Effects ===== */
.card-hover {
    transition: none;
}

.card-hover:hover {
    transform: none;
    box-shadow: none;
}

/* ===== Smooth Scroll ===== */
html {
    scroll-behavior: smooth;
}

/* ===== Custom Placeholder ===== */
::placeholder {
    color: #9ca3af;
    opacity: 1;
}

/* ===== Reusable Components ===== */

/* Form Fields - Standard Size */
.input-field {
    width: 100%;
    padding: 0.625rem 1rem; /* py-2.5 px-4 */
    border: 1px solid #d1d5db; /* border-gray-300 */
    border-radius: 0.5rem; /* rounded-lg */
    outline: none;
    transition: none;
}

.input-field:focus {
    border-color: #1f2937; /* gray-800 */
}

.input-field:hover:not(:focus) {
    border-color: #9ca3af; /* gray-400 */
}

/* Form Fields - Small Size */
.input-field-sm {
    width: 100%;
    padding: 0.5rem 0.75rem; /* py-2 px-3 */
    font-size: 0.875rem; /* text-sm */
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    outline: none;
    transition: none;
}

.input-field-sm:focus {
    border-color: #1f2937;
}

.input-field-sm:hover:not(:focus) {
    border-color: #9ca3af;
}

/* Select / Dropdown Field */
.select-field {
    width: 100%;
    padding: 0.625rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    outline: none;
    background-color: white;
    transition: none;
    cursor: pointer;
}

.select-field:focus {
    border-color: #1f2937;
}

.select-field:hover:not(:focus) {
    border-color: #9ca3af;
}

/* Checkbox & Radio Fields */
.checkbox-field,
.radio-field {
    width: 1rem;
    height: 1rem;
    border: 1px solid #d1d5db;
    transition: none;
    cursor: pointer;
}

.checkbox-field:focus,
.radio-field:focus {
}

.checkbox-field:checked,
.radio-field:checked {
    background-color: #1f2937;
    border-color: #1f2937;
}

/* Primary Button (Black) */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem; /* py-2.5 px-5 */
    background-color: #111827; /* gray-900 */
    color: white;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: none;
    box-shadow: none;
    cursor: pointer;
    border: none;
}

.btn-primary:hover {
    background-color: #1f2937; /* gray-800 */
}

.btn-primary:active {
    background-color: #374151; /* gray-700 */
}

.btn-primary:focus-visible {
    outline: 2px solid #1f2937;
    outline-offset: 2px;
}

/* Secondary Button (Border) */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background-color: white;
    color: #374151; /* gray-700 */
    font-weight: 500;
    border: 2px solid #d1d5db; /* gray-300 */
    border-radius: 0.5rem;
    transition: none;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: #f9fafb; /* gray-50 */
    border-color: #9ca3af; /* gray-400 */
}

.btn-secondary:active {
    background-color: #f3f4f6; /* gray-100 */
}

.btn-secondary:focus-visible {
    outline: 2px solid #1f2937;
    outline-offset: 2px;
}

/* Disabled Button */
.btn-disabled {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background-color: #e5e7eb; /* gray-200 */
    color: #9ca3af; /* gray-400 */
    font-weight: 500;
    border-radius: 0.5rem;
    cursor: not-allowed;
    border: none;
}

/* Full Width Button */
.btn-full {
    width: 100%;
    justify-content: center;
}

/* Form Labels */
.form-label {
    display: block;
    font-size: 0.875rem; /* text-sm */
    font-weight: 500;
    color: #374151; /* gray-700 */
    margin-bottom: 0.5rem;
}

.form-label-required::after {
    content: " *";
    color: #dc2626; /* red-600 */
}

/* Error Messages */
.form-error {
    font-size: 0.875rem;
    color: #dc2626;
    margin-top: 0.25rem;
}

/* Form Group Container */
.form-group {
    margin-bottom: 1rem;
}

/* Focus Within for Containers */
.focus-within-ring:focus-within {
    border-color: #1f2937;
    box-shadow: 0 0 0 2px rgba(31, 41, 55, 0.1);
}

header[aria-label="Site header"] {
    background: var(--smarta-header-bg) !important;
}

.backdrop-blur-sm,
.backdrop-blur-md,
.backdrop-blur-2xl {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

.shadow-sm,
.shadow-md,
.shadow-lg,
.shadow-xl {
    box-shadow: none !important;
}

.transition,
.transition-all,
.transition-transform,
.transition-colors {
    transition: none !important;
}

.bg-gradient-to-br,
.bg-gradient-to-bl,
.bg-gradient-to-r,
.bg-gradient-to-l {
    background-image: none !important;
    background-color: #111827 !important;
}

.group:hover .group-hover\:scale-110 {
    transform: none !important;
}
