/* ==========================================
   BBT Serviceverwaltung - Zentrales Stylesheet
   Version 2.1.1
   ========================================== */

/* --- 1. SCROLLBARS (Modernes, flaches Design) --- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9; /* Entspricht bg-slate-100 */
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1; /* Entspricht bg-slate-300 */
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8; /* Entspricht hover:bg-slate-400 */
}

/* --- 2. EINGABEFELDER --- */
/* Versteckt die Pfeile (Spinners) bei Zahlenfeldern */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* --- 3. ANIMATIONEN (Keyframes & Klassen) --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-slide-up {
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}
.animate-slide-in-right {
    animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideInLeft {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
.animate-slide-in-left {
    animation: slideInLeft 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}


/* --- 4. ZENTRALE KOMPONENTEN --- */

/* Tabs (z.B. in den Einstellungen) */
.tab-active {
    background-color: #ffffff;
    color: #1d4ed8; /* text-blue-700 */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); /* shadow-sm */
    border: 1px solid #e2e8f0; /* border-slate-200 */
}
.tab-inactive {
    color: #64748b; /* text-slate-500 */
    border: 1px solid transparent;
    transition: all 0.2s;
}
.tab-inactive:hover {
    background-color: #e2e8f0; /* bg-slate-200 */
}

/* Assistenten & Import Wizards */
.step-active {
    background-color: #059669; /* emerald-600 */
    color: #ffffff;
    border-color: #059669;
}
.step-inactive {
    background-color: #f1f5f9; /* slate-100 */
    color: #94a3b8; /* slate-400 */
    border-color: #e2e8f0; /* slate-200 */
}
.step-completed {
    background-color: #3b82f6; /* blue-500 */
    color: #ffffff;
    border-color: #3b82f6;
}

/* POS Buttons (Kassensystem) */
.pos-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    text-align: center;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 0.75rem; /* text-xs */
    letter-spacing: 0.05em;
    line-height: 1.25;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    user-select: none;
    cursor: pointer;
    overflow: hidden;
    word-break: break-word;
    border-width: 1px;
    transition: all 0.15s;
}
.pos-btn:active {
    transform: scale(0.95);
}
@media (min-width: 768px) {
    .pos-btn { padding: 1rem; }
}


/* --- 5. SPEZIFISCHE MODULE --- */

/* Fernwartung (Video Container) */
.video-container {
    background-image: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
}

/* Toggle Checkboxen (z.B. in den Settings) */
.toggle-checkbox:checked {
    right: 0;
    border-color: #2563eb;
}
.toggle-checkbox:checked + .toggle-label {
    background-color: #2563eb;
}

/* --- 6. DRAG & DROP KALENDER --- */
.tech-col {
    transition: width 0.3s ease;
}
.expand-cols .tech-col-empty {
    width: 96px;
    min-width: 96px;
}
.tech-col-empty .tech-name {
    display: none;
}
.expand-cols .tech-col-empty .tech-name {
    display: inline;
}

/* Optisches Feedback beim Ziehen von Tickets */
body.is-dragging .ticket-block { 
    pointer-events: none !important; 
}
.col-drag-hover { 
    background-color: rgba(59, 130, 246, 0.05); 
    box-shadow: inset 0 0 0 2px #60a5fa; 
}
.list-drag-hover { 
    background-color: rgba(239, 68, 68, 0.05) !important; 
    border-color: #f87171 !important; 
}


/* --- 7. GEMEINSAMES LAYOUT --- */
.bbt-page-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.5rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

@media (max-width: 768px) {
    header .service-subtitle-mobile-hide {
        display: none;
    }
}


/* --- Gemeinsames Basis-Layout --- */
#app-body header button { -webkit-tap-highlight-color: transparent; }
@media (max-width: 640px) {
    #server-status-container { display: none; }
}
