﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    min-width: 250px;
    max-width: 350px;
    padding: 12px 16px;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    animation: slideIn 0.3s ease forwards, fadeOut 0.5s ease forwards;
    animation-delay: 0s, 5s;
}


    .toast.success {
        background: #28a745;
    }

    .toast.error {
        background: #dc3545;
    }

    .toast.warning {
        background: #ffc107;
        color: #000;
    }

    .toast.info {
        background: #17a2b8;
    }
    .toast.confirm {
        background: #6c757d; 
        color: #fff;
    }

@keyframes slideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(120%);
    }
}

.drag-area {
    border: 2px dashed #ccc;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
}

.drag-area.dragging {
        background-color: #f1f1f1;
        border-color: #333;
    }

.file-hidden-input {
    height: 1px !important;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer !important;
    padding: 0px;
}

.dataTables_wrapper table.dataTable thead th, .dataTables_wrapper table.dataTable thead td {
    padding: 0px 20px !important;
}

.table-responsive-custom {
    width: 100%;
/*    overflow-x: auto;
    -webkit-overflow-scrolling: touch;*/
}

.table-scroll-wrapper {
    overflow-x: scroll;
    width: 100%;
}

.table-scroll-wrapper table {
    min-width: 1700px; /* adjust if needed */
}

.dataTables_wrapper table#DTable thead th {
    padding: 12px 20px !important;
}




/* ===============================
   DATATABLES UI FIXES
================================ */

/* Show entries dropdown — size & alignment */
.dataTables_length select {
    padding: 4px 8px;
    height: 26px !important;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #ced4da;
}

/* Label text alignment */
.dataTables_length label {
    font-weight: 500;
    font-size: 14px;
}

/* Search input — light border */
.dataTables_filter input {
    height: 32px;
    padding: 4px 10px;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #ced4da;
    border-color: #24695c;
    outline: none;
}

    /* Search focus effect */
    .dataTables_filter input:focus {
        border-color: #24695c;
        box-shadow: 0 0 0 0.1rem rgba(36, 105, 92, 0.25);
    }

/* ===============================
   PAGINATION STYLING
================================ */

/* Default pagination button */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 4px 10px;
    margin: 0 2px;
    border-radius: 6px;
    border: 2px solid #dee2e6;
    background-color: #fff;
    color: #24695c !important;
    font-size: 14px;
    transition: all 0.2s ease-in-out;
}

    /* Hover effect */
    .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
        background-color: #24695c !important;
        color: #fff !important;
        border-color: #24695c;
    }

    /* Active page */
    .dataTables_wrapper .dataTables_paginate .paginate_button.current {
        background-color: #24695c !important;
        color: #fff !important;
        border-color: #24695c;
        font-weight: 500;
    }

    /* Disabled buttons */
    .dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    /* Remove ugly default outline */
    .dataTables_wrapper .dataTables_paginate .paginate_button:focus {
        box-shadow: none;
    }
