
/* =========================================
   JOBPLATFORM - GLOBAL STYLES
   ========================================= */

:root {
    font-family: 'Inter', sans-serif;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --background: #ffffff;
    --background-soft: #f8fafc;
    --border-color: #e2e8f0;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
}

/* =========================================
   RESET
   ========================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
}

body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: var(--background);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =========================================
   TYPOGRAPHY
   ========================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.035em;
    color: var(--text-primary);
}

p {
    margin-top: 0;
}

a {
    color: var(--primary);
    text-decoration: none;
}

    a:hover {
        color: var(--primary-hover);
    }

/* =========================================
   FORMS
   ========================================= */

button,
input,
select,
textarea {
    font-family: 'Inter', sans-serif;
    font-size: inherit;
}

button {
    cursor: pointer;
}

    button:disabled {
        cursor: not-allowed;
        opacity: 0.6;
    }

input,
select,
textarea {
    color: var(--text-primary);
}

    input::placeholder,
    textarea::placeholder {
        color: #94a3b8;
    }

    input:focus-visible,
    select:focus-visible,
    textarea:focus-visible,
    button:focus-visible,
    a:focus-visible {
        outline: 2px solid var(--primary);
        outline-offset: 3px;
    }

/* =========================================
   IMAGES
   ========================================= */

img,
svg {
    max-width: 100%;
}

img {
    height: auto;
}

/* =========================================
   BLAZOR NAVIGATION
   ========================================= */

h1:focus {
    outline: none;
}

/* =========================================
   BLAZOR VALIDATION
   ========================================= */

.valid.modified:not([type="checkbox"]) {
    outline: 1px solid #16a34a;
}

.invalid {
    outline: 1px solid #dc2626;
}

.validation-message {
    display: block;
    margin-top: 5px;
    color: #dc2626;
    font-size: 12px;
    font-weight: 500;
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

/* =========================================
   BLAZOR ERROR BOUNDARY
   ========================================= */

.blazor-error-boundary {
    position: relative;
    padding: 20px 20px 20px 55px;
    border: 1px solid #fecaca;
    border-radius: 12px;
    background: #fef2f2;
    color: #991b1b;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
}

    .blazor-error-boundary::before {
        content: "!";
        position: absolute;
        top: 50%;
        left: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: #dc2626;
        color: #ffffff;
        font-size: 15px;
        font-weight: 800;
        transform: translateY(-50%);
    }

    .blazor-error-boundary::after {
        content: "Ýalňyşlyk ýüze çykdy.";
    }

/* =========================================
   BLAZOR RECONNECT MODAL
   ========================================= */

#components-reconnect-modal {
    font-family: 'Inter', sans-serif;
}

/* =========================================
   TEXT SELECTION
   ========================================= */

::selection {
    background: #bfdbfe;
    color: #0f172a;
}

/* =========================================
   SCROLLBAR
   ========================================= */

::-webkit-scrollbar {
    width: 9px;
    height: 9px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #94a3b8;
    }

/* =========================================
   ACCESSIBILITY
   ========================================= */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    h1,
    h2,
    h3 {
        overflow-wrap: break-word;
    }
}
