/* Moderné animácie a custom štýly */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    background-color: #f3f4f6;
}

/* Fix: Prevent clipping of diacritics (č,ž,ý,ď,ť,ľ) and descenders (y,g,p,j) on truncated headings */
h1, h2, h3 {
    overflow-clip-margin: 3px;
}

h1[class*="truncate"],
h2[class*="truncate"],
h3[class*="truncate"],
h1[class*="leading-7"],
h2[class*="leading-7"],
h3[class*="leading-7"] {
    line-height: 1.3 !important;
    padding-top: 0.15em;
    padding-bottom: 0.1em;
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.gradient-text {
    background: linear-gradient(to right, #3b82f6, #8b5cf6);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Login Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.dark .glass {
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.dark body {
    background-color: #111827; /* gray-900 */
}

/* Convert base light utility backgrounds to dark variants */
.dark .bg-white {
    background-color: #1f2937; /* gray-800 */
}

.dark .bg-gray-50,
.dark .bg-gray-100 {
    background-color: #111827; /* gray-900 */
}

/* Convert base text utilities */
.dark .text-gray-900,
.dark .text-gray-800,
.dark .text-gray-700 {
    color: #f3f4f6; /* gray-100 */
}

.dark .text-gray-500 {
    color: #9ca3af; /* gray-400 */
}

/* Convert base borders */
.dark .border-gray-100,
.dark .border-gray-200,
.dark .border-gray-300 {
    border-color: #374151; /* gray-700 */
}

/* Dark mode inputs */
.dark input[type="text"],
.dark input[type="email"],
.dark input[type="password"],
.dark input[type="search"],
.dark input[type="number"],
.dark input[type="url"],
.dark input[type="tel"],
.dark textarea,
.dark select {
    background-color: #374151; /* gray-700 */
    color: #f9fafb;
    border-color: #4b5563; /* gray-600 */
}

.dark input[type="text"]::placeholder,
.dark input[type="email"]::placeholder,
.dark input[type="password"]::placeholder,
.dark input[type="search"]::placeholder,
.dark input[type="number"]::placeholder,
.dark input[type="url"]::placeholder,
.dark input[type="tel"]::placeholder,
.dark textarea::placeholder {
    color: #9ca3af; /* gray-400 */
}


/* Custom file upload */
.file-upload {
    position: relative;
}

.file-upload .file-input {
    position: absolute;
    left: -9999px;
}

.file-upload .file-label {
    border: 2px dashed #cbd5e1;
    background: #f8fafc;
    color: #0f172a;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all .2s ease;
    display: block;
}

.file-upload .file-label:hover {
    border-color: #93c5fd;
    background: #eff6ff;
}

.file-upload .file-label .file-label-icon {
    font-size: 28px;
    color: #3b82f6;
    margin-bottom: 6px;
}

.file-upload .file-label .file-name {
    margin-top: 6px;
    font-size: 12px;
    color: #64748b;
}

.dark .file-upload .file-label {
    border-color: #334155;
    background: #0b1220;
    color: #e5e7eb;
}

.dark .file-upload .file-label:hover {
    border-color: #60a5fa;
    background: #0f172a;
}

.dark .file-upload .file-label .file-name {
    color: #94a3b8;
}

/* Custom Modern Checkboxes */
.ti-checkbox {
    appearance: none !important;
    position: relative !important;
    width: 22px !important;
    height: 22px !important;
    margin: 0 !important;
    cursor: pointer !important;
    background: #fff !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 7px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.ti-checkbox:hover {
    border-color: #3b82f6 !important;
    transform: scale(1.08);
}

.ti-checkbox:checked {
    background: #3b82f6 !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
}

/* VIP Yellow variant */
.ti-checkbox-yellow:checked {
    background: #eab308 !important;
    border-color: #eab308 !important;
    box-shadow: 0 4px 12px rgba(234, 179, 8, 0.4) !important;
}

/* Instagram Pink variant */
.ti-checkbox-pink:checked {
    background: #db2777 !important;
    border-color: #db2777 !important;
    box-shadow: 0 4px 12px rgba(219, 39, 119, 0.4) !important;
}

.ti-checkbox::after {
    content: '' !important;
    position: absolute !important;
    width: 6px !important;
    height: 11px !important;
    border: solid white !important;
    border-width: 0 2px 2px 0 !important;
    transform: rotate(45deg) scale(0) !important;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.25) !important;
    top: 3px !important;
    left: 7px !important;
    opacity: 0 !important;
}

.ti-checkbox:checked::after {
    transform: rotate(45deg) scale(1) !important;
    opacity: 1 !important;
}

.dark .ti-checkbox {
    background: #0f172a !important;
    border-color: #334155 !important;
}

.dark .ti-checkbox:checked {
    background: #3b82f6 !important;
    border-color: #3b82f6 !important;
}

.dark .ti-checkbox-yellow:checked {
    background: #eab308 !important;
    border-color: #eab308 !important;
}

.dark .ti-checkbox-pink:checked {
    background: #db2777 !important;
    border-color: #db2777 !important;
}