/* styles.css - Budget-Tool */

/* ========================================
   Global HTML/Body Styles
   ======================================== */
html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* body {
    position: relative;
    font-family: sans-serif;
} */

.bi {
    vertical-align: -.125em;
    fill: currentColor;
}

.nav-scroller {
    position: relative;
    z-index: 2;
    height: 2.75rem;
    overflow-y: hidden;
}

.nav-scroller .nav {
    display: flex;
    flex-wrap: nowrap;
    padding-bottom: 1rem;
    margin-top: -1px;
    overflow-x: auto;
    text-align: center;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.button-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: left;
}

.button-list li,
.button-list img {
    flex: 1 0 60px;
    max-width: 60px;
}

.button-list a:hover {
    transform: translateY(-3px);
    filter: brightness(80%);
}

.button-list img {
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-signin {
    max-width: 330px;
    padding: 1rem;
}

.form-signin .form-floating:focus-within {
    z-index: 2;
}

.form-signin input[type="email"] {
    margin-bottom: -1px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.form-signin input[type="password"] {
    margin-bottom: 10px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.button-list li,
.button-list img {
    flex: 1 0 60px;
    max-width: 60px;
}

.button-list a:hover {
    transform: translateY(-3px);
    filter: brightness(80%);
}

.button-list img {
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-bd-primary {
    --bd-violet-bg: #712cf9;
    --bd-violet-rgb: 112.520718, 44.062154, 249.437846;
    --bs-btn-font-weight: 600;
    --bs-btn-color: var(--bs-white);
    --bs-btn-bg: var(--bd-violet-bg);
    --bs-btn-border-color: var(--bd-violet-bg);
    --bs-btn-hover-color: var(--bs-white);
    --bs-btn-hover-bg: #6528e0;
    --bs-btn-hover-border-color: #6528e0;
    --bs-btn-focus-shadow-rgb: var(--bd-violet-rgb);
    --bs-btn-active-color: var(--bs-btn-hover-color);
    --bs-btn-active-bg: #5a23c8;
    --bs-btn-active-border-color: #5a23c8;
}

.bd-mode-toggle {
    z-index: 1500;
}

.bd-mode-toggle .dropdown-menu .active .bi {
    display: block !important;
}

.modal-header {
    z-index: 1050;
}

.modal-footer {
    z-index: 1050;
}

.modal-body {
    /* Styles für Modal-Body */
}

/* ========================================
   Accordion Styles (Admin)
   ======================================== */
.accordion-button:not(.collapsed) {
    background-color: #2c5aa0;
    color: #fff;
}

.accordion-button:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
}

/* ========================================
   Transaction Styles (Admin)
   ======================================== */

/* Transaction Header Layout */
.transaction-header {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.transaction-info {
    flex: 1;
    min-width: 0;
}

.transaction-amount {
    font-weight: bold;
    min-width: 100px;
    text-align: right;
    margin-left: 0;
    margin-right: 16px; /* Abstand zum Chevron */
}

/* Badge Styles */
.badge-status {
    min-width: 80px;
}

/* Text Styles */
.contact-name {
    font-weight: 600;
    color: #333;
}

.transaction-date {
    font-size: 0.85rem;
    color: #999;
}

/* ========================================
   Drag and Drop Styles (Admin)
   ======================================== */
.draggable-transaction {
    cursor: grab;
}

.draggable-transaction:active {
    cursor: grabbing;
}

.draggable-transaction.drag-over {
    background-color: rgba(102, 126, 234, 0.1);
    border-top: 2px solid #667eea;
}

.draggable-transaction.dragging {
    opacity: 0.6;
}


/* ========================================
   Fixed Background Layer
   ======================================== */
.bg-fixed-layer {
    position: fixed;
    inset: 0; /* entspricht top: 0; right: 0; bottom: 0; left: 0 */
    z-index: -1;
    pointer-events: none;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpolygon points='0,10 30,0 40,30 10,40' fill='rgba(0,0,0,0.05)'/%3E%3C/svg%3E"),
        linear-gradient(135deg, #6e48aa, #9d50bb, #d4145a, #f45c43, #ffa751, #f9b233);
    background-size: 40px 40px, cover;
    background-repeat: repeat, no-repeat;
    background-position: 0 0, center;
}

/* Projektübergreifender Gradient */
.bg-gradient-login {
    background: linear-gradient(135deg, var(--login-grad-1) 0%, var(--login-grad-2) 33%, var(--login-grad-3) 66%, var(--login-grad-4) 100%) !important;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 100vh;
}

/* ========================================
   Utility Styles
   ======================================== */
.text-shadow {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

.offcanvas-footer {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ========================================
   Card and Icon Hover Effects
   ======================================== */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover {
    transform: translateY(-5px); /* Moves card up 5px */
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.hover-icon {
    opacity: 0;
    transition: opacity .15s ease-in-out;
}

.dashboard-activity-item {
    display: flex;
    align-items: center;
    padding-right: 1rem;
}

.dashboard-activity-icon {
    align-self: flex-start;
    margin-top: 0.125rem;
}

.dashboard-activity-body {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1 1 auto;
    min-width: 0;
}

.dashboard-activity-details {
    flex: 1 1 auto;
    min-width: 0;
}

.dashboard-activity-name,
.dashboard-activity-description {
    display: block;
    max-width: 100%;
}

.dashboard-activity-description {
    color: #999999;
}

.dashboard-activity-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex: 0 0 240px;
    min-width: 240px;
}

.dashboard-activity-category {
    min-width: 0;
}

.dashboard-activity-amount {
    flex-shrink: 0;
    margin-left: auto;
}

.dashboard-activity-amount-income {
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .dashboard-activity-meta {
        flex-basis: 185px;
        min-width: 185px;
        gap: 0.75rem;
    }
}

@media (max-width: 767.98px) {
    .dashboard-activity-item {
        gap: 0.75rem;
    }
}

@media (max-width: 575.98px) {
    .dashboard-activity-item {
        align-items: flex-start;
    }

    .dashboard-activity-body {
        padding-top: 0.125rem;
    }

    .dashboard-activity-name,
    .dashboard-activity-description {
        max-width: 175px;
    }
}

/* Transaction Item Responsive Layout */
.transaction-body {
    min-width: 0;
}

.transaction-details {
    min-width: 0;
}

/* .card:hover .hover-icon {
    opacity: 1;
}

.hover-icon:hover {
    color: var(--bs-primary) !important;
} */
