/* TRUST-TECH ortak ozel kurallar — Tailwind disindaki kucuk dokunuslar */

body { font-family: 'Inter', sans-serif; }

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    user-select: none;
}
.icon-fill {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.industrial-grid-bg {
    background-size: 40px 40px;
    background-image:
        linear-gradient(to right, rgba(198, 198, 205, 0.2) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(198, 198, 205, 0.2) 1px, transparent 1px);
}

.data-mono, .text-data-mono { font-family: 'JetBrains Mono', monospace; }

.table-scroll::-webkit-scrollbar { width: 8px; height: 8px; }
.table-scroll::-webkit-scrollbar-track { background: #f0edef; }
.table-scroll::-webkit-scrollbar-thumb { background: #c6c6cd; border-radius: 4px; }
.table-scroll::-webkit-scrollbar-thumb:hover { background: #76777d; }

/* TT-Modal custom (Tailwind ile uyumlu, Bootstrap modal yerine) */
.tt-modal-backdrop {
    position: fixed; inset: 0; background: rgba(19,27,46,.55);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999; opacity: 0; pointer-events: none; transition: opacity .15s ease-out;
}
.tt-modal-backdrop.open { opacity: 1; pointer-events: auto; }
.tt-modal {
    background: #fff; border-radius: 0.5rem; box-shadow: 0 12px 40px rgba(19,27,46,.25);
    width: 720px; max-width: calc(100vw - 32px); max-height: calc(100vh - 64px);
    display: flex; flex-direction: column; overflow: hidden;
    transform: translateY(8px); transition: transform .15s ease-out;
}
.tt-modal-backdrop.open .tt-modal { transform: translateY(0); }
.tt-modal-header {
    display: flex; align-items: center; padding: 12px 16px;
    border-bottom: 1px solid #c6c6cd; background: #f6f3f5;
}
.tt-modal-title { font-weight: 600; font-size: 14px; letter-spacing: .03em; text-transform: uppercase; }
.tt-modal-close {
    margin-left: auto; border: 0; background: transparent; cursor: pointer;
    color: #45464d; padding: 4px 6px; border-radius: 4px;
}
.tt-modal-close:hover { background: #e4e2e4; }
.tt-modal-body { flex: 1; overflow: auto; }
.tt-modal-body iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }

/* Sidebar aktif item belirteci */
.sidebar-link {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px;
    border-left: 4px solid transparent; border-radius: 0 4px 4px 0;
    color: #45464d; transition: background .15s, color .15s, border-color .15s;
    text-decoration: none; font-size: 12px; font-weight: 700; letter-spacing: .05em;
}
.sidebar-link:hover { background: #eae7e9; color: #1b1b1d; }
.sidebar-link.active {
    background: rgba(253,118,26,.12); color: #5c2400; border-left-color: #fd761a; font-weight: 800;
}
.sidebar-link .material-symbols-outlined { font-size: 22px; }

/* Tanimlar hover submenu linkleri */
.submenu-link {
    display: flex; align-items: center; gap: 10px; padding: 8px 12px;
    border-radius: 4px; color: #45464d; text-decoration: none;
    font-size: 13px; font-weight: 500; transition: background .12s, color .12s;
}
.submenu-link:hover { background: #f0edef; color: #1b1b1d; }
.submenu-link.active { background: rgba(253,118,26,.12); color: #5c2400; font-weight: 700; }
.submenu-link .material-symbols-outlined { color: #76777d; }
.submenu-link.active .material-symbols-outlined { color: #5c2400; }

/* Toast */
#tt-toast-holder { position: fixed; top: 76px; right: 20px; z-index: 99999; display: flex; flex-direction: column; gap: 8px; }
.tt-toast {
    background: #1b1b1d; color: #fff; padding: 10px 14px; border-radius: 4px; font-size: 13px;
    box-shadow: 0 6px 20px rgba(0,0,0,.18); min-width: 220px; max-width: 360px;
    border-left: 4px solid #76777d; opacity: 0; transition: opacity .25s; transform: translateY(-6px);
}
.tt-toast.show { opacity: 1; transform: translateY(0); }
.tt-toast.success { border-left-color: #10b981; }
.tt-toast.danger  { border-left-color: #ba1a1a; }
.tt-toast.warning { border-left-color: #fd761a; }
.tt-toast.info    { border-left-color: #3f465c; }
