/* ====================================
   Global Override - Keine runden Ecken, keine Schatten
   Muss NACH Bootstrap geladen werden
   ==================================== */

/* Entferne ALLE Schatten global */
* {
    box-shadow: none !important;
    text-shadow: none !important;
}

/* Entferne ALLE runden Ecken global */
*,
*::before,
*::after {
    border-radius: 0 !important;
}

/* Bootstrap Komponenten explizit überschreiben */

/* Cards */
.card,
.card-header,
.card-footer,
.card-body,
.card-img,
.card-img-top,
.card-img-bottom {
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Buttons - MAXIMUM SPECIFICITY */
button,
.btn,
.btn-group,
.btn-group-vertical,
.btn-toolbar,
.btn-primary,
.btn-secondary,
.btn-success,
.btn-danger,
.btn-warning,
.btn-info,
.btn-light,
.btn-dark,
.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-success,
.btn-outline-danger,
.btn-outline-warning,
.btn-outline-info,
.btn-outline-light,
.btn-outline-dark,
.btn-sm,
.btn-lg,
.btn-group-sm > .btn,
.btn-group-lg > .btn {
    border-radius: 0 !important;
    box-shadow: none !important;
}

.btn:hover,
.btn:focus,
.btn:active,
.btn.active,
.btn:focus-visible {
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* Forms */
.form-control,
.form-select,
.form-check-input,
.input-group,
.input-group-text,
.input-group > *,
.form-floating {
    border-radius: 0 !important;
    box-shadow: none !important;
}

.form-control:focus,
.form-select:focus {
    box-shadow: none !important;
    outline: 2px solid rgba(226, 34, 120, 0.25);
}

/* Dropdowns */
.dropdown-menu,
.dropdown-item,
.dropdown-toggle {
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Modals */
.modal-content,
.modal-header,
.modal-footer,
.modal-body {
    border-radius: 0 !important;
    box-shadow: none !important;
}

.modal-backdrop {
    backdrop-filter: none;
}

/* Alerts */
.alert,
.toast,
.toast-header,
.toast-body {
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Progress bars */
.progress,
.progress-bar {
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Badges & Pills */
.badge,
.pill {
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Pagination */
.pagination,
.page-link,
.page-item:first-child .page-link,
.page-item:last-child .page-link {
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Nav tabs & Pills */
.nav-tabs,
.nav-pills,
.nav-link,
.nav-tabs .nav-link,
.nav-pills .nav-link {
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* List groups */
.list-group,
.list-group-item,
.list-group-item:first-child,
.list-group-item:last-child {
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Breadcrumbs */
.breadcrumb,
.breadcrumb-item {
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Tables */
.table,
.table-bordered,
.table-responsive {
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Accordions */
.accordion,
.accordion-item,
.accordion-button,
.accordion-header,
.accordion-body,
.accordion-collapse {
    border-radius: 0 !important;
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    box-shadow: none !important;
}

/* Popovers & Tooltips */
.popover,
.popover-arrow,
.popover-header,
.popover-body,
.tooltip,
.tooltip-inner {
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Offcanvas */
.offcanvas,
.offcanvas-header,
.offcanvas-body {
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Spinners */
.spinner-border,
.spinner-grow {
    border-radius: 0 !important;
}

/* Images & Figures */
.img-thumbnail,
.figure-img {
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Close button */
.btn-close:focus {
    box-shadow: none !important;
}

/* Custom scrollbar für Webkit */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 !important;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 0 !important;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Spezielle Bootstrap Utilities überschreiben */
.shadow,
.shadow-lg,
.shadow-none {
    box-shadow: none !important;
}

.rounded,
.rounded-0,
.rounded-1,
.rounded-2,
.rounded-3,
.rounded-4,
.rounded-5,
.rounded-circle,
.rounded-pill,
.rounded-top,
.rounded-end,
.rounded-bottom,
.rounded-start {
    border-radius: 0 !important;
}

/* Input group special cases */
.input-group > :not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback) {
    margin-left: -1px;
    border-radius: 0 !important;
}

/* Carousel */
.carousel-inner,
.carousel-item,
.carousel-control-prev,
.carousel-control-next,
.carousel-indicators {
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Ensure consistency across all states */
*:hover,
*:focus,
*:active,
*:focus-visible {
    box-shadow: none !important;
}

/* Remove default Bootstrap transitions for shadows */
.shadow-transition,
.transition {
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease !important;
}

/* Navbar specific */
.navbar {
    box-shadow: none !important;
}

.navbar-toggler {
    border-radius: 0 !important;
}

.navbar-toggler:focus {
    box-shadow: none !important;
}

/* Collapse */
.collapse,
.collapsing {
    border-radius: 0 !important;
}

/* Avatar images - keep them square */
.avatar,
.rounded-circle {
    border-radius: 0 !important;
}

/* ====================================
   NUCLEAR OPTION - Force alle Buttons
   Falls Bootstrap immer noch gewinnt
   ==================================== */

/* Alle Button-Elemente unabhängig von Klassen */
button[class*="btn"],
a[class*="btn"],
input[type="button"],
input[type="submit"],
input[type="reset"],
.btn-group > *,
.btn-toolbar > * {
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Alle Button-States */
button[class*="btn"]:hover,
button[class*="btn"]:focus,
button[class*="btn"]:active,
a[class*="btn"]:hover,
a[class*="btn"]:focus,
a[class*="btn"]:active {
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* ====================================
   PRIORITÄTSFARBEN & SEMANTIC COLORS
   Überschreibt Bootstrap-Standard-Farben
   ==================================== */

.priority-badge-a {
    background-color: #FF6361 !important;
    color: #fff !important;
    font-weight: 700 !important;
}
.priority-badge-b {
    background-color: #f7bf2b !important;
    color: #fff !important;
    font-weight: 700 !important;
}
.priority-badge-c {
    background-color: #6F975C !important;
    color: #fff !important;
    font-weight: 700 !important;
}

/* Border-Farben für Prioritätskarten (links, 4px) */
.border-danger {
    border-left-color: #FF6361 !important;
    border-left-width: 4px !important;
}
.border-primary {
    border-left-color: #f7bf2b !important;
    border-left-width: 4px !important;
}
.border-secondary {
    border-left-color: #6F975C !important;
    border-left-width: 4px !important;
}

/* Week-Tile Prioritäts-Border */
.week-tile-priority-a     { border-left-color: #FF6361 !important; }
.week-tile-priority-mittel { border-left-color: #f7bf2b !important; }
.week-tile-priority-normal { border-left-color: #6F975C !important; }

/* Semantische Farben
   HINWEIS: .bg-success wird NICHT global überschrieben, damit
   bg-success bg-opacity-10 (transparente Karten) korrekt funktioniert.
   Priority-Badges nutzen .priority-badge-a/b/c, nicht .bg-success.
*/
.bg-danger {
    --bs-bg-opacity: 1;
    background-color: #FF6361 !important;
}
.text-danger {
    --bs-text-opacity: 1;
    color: #FF6361 !important;
}
