/**
 * WhatsApp Bot Yönetim Paneli
 * CSS Reset ve Base Stilleri
 */

/* Box Sizing */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
}

/* HTML ve Body */
html {
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    min-height: 100vh;
}

/* Medya Öğeleri */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Form Öğeleri */
input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
}

/* Buton Reset */
button {
    cursor: pointer;
    background: transparent;
    border: none;
    outline: none;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Link Reset */
a {
    color: inherit;
    text-decoration: none;
}

/* Liste Reset */
ul,
ol {
    list-style: none;
}

/* Tablo Reset */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Başlıklar */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-tight);
    color: var(--text-primary);
}

h1 {
    font-size: var(--font-size-3xl);
}

h2 {
    font-size: var(--font-size-2xl);
}

h3 {
    font-size: var(--font-size-xl);
}

h4 {
    font-size: var(--font-size-lg);
}

h5 {
    font-size: var(--font-size-base);
}

h6 {
    font-size: var(--font-size-sm);
}

/* Paragraf */
p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-4);
}

p:last-child {
    margin-bottom: 0;
}

/* Strong ve Em */
strong {
    font-weight: var(--font-weight-semibold);
}

/* Small */
small {
    font-size: var(--font-size-sm);
    color: var(--text-tertiary);
}

/* Code */
code {
    font-family: var(--font-family-mono);
    font-size: 0.9em;
    background-color: var(--bg-tertiary);
    padding: var(--spacing-1) var(--spacing-2);
    border-radius: var(--radius-sm);
}

/* Seçim Stili */
::selection {
    background-color: var(--color-primary-light);
    color: var(--color-primary-dark);
}

/* Focus Visible */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Placeholder */
::placeholder {
    color: var(--text-tertiary);
    opacity: 1;
}

/* Scrollbar Stilleri */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb {
    background: var(--color-gray-400);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-gray-500);
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--color-gray-400) var(--bg-tertiary);
}

/* Yardımcı Sınıflar */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hidden {
    display: none !important;
}

.invisible {
    visibility: hidden;
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
