﻿:root {
    --primary-blue: #4154f1; /* Dark blue for headers, buttons */
    --secondary-blue: #012970; /* Vibrant blue for hover, highlights */
    --accent-blue: #b4d4ff; /* Light blue for accents */
    --gradient-blue: #2a3eb1; /* Darker blue for gradient accents */
    --dark-neutral: #1f2937; /* Dark gray for text, borders */
    --light-neutral: #f1f5f9; /* Light gray for backgrounds */
    --white: #ffffff; /* White for text */
    --success-green: #10b981; /* For toast success */
    --error-red: #ef4444; /* For toast error */
    --secondary-green: #4CAF50; /* Forest green, vibrant yet natural */
    --accent-green: #388E3C; /* Darker green for active state */
    /*    redtheme*/

    --primary-red: #B62E27; /* Deep red for headers, buttons */
    --secondary-red: #7A1C17; /* Darker red for hover, highlights */
    --accent-red: #FF9999; /* Light red for accents */
    --gradient-red: #A61B1A; /* Darker red for gradient accents */
    --dark-neutral: #1f2937; /* Dark gray for text, borders */
    --glow-red-accent: rgba(182, 46, 39, 0.15);
}
a{
    text-decoration:none !important;
}
body{
    background-color:var(--glow-accent);
}
.btn-add {
    /* Base button styles */
    background-color: var(--primary-red);
    color: var(--white);
    padding: 3px 10px;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--glow-red-accent);
}

    /* Hover effect */
    .btn-add:hover {
        color:var(--white);
        background-color: var(--secondary-red);
        box-shadow: 0 4px 12px var(--glow-red-accent);
        transform: translateY(-2px);
    }

    /* Active effect */
    .btn-add:active {
        background-color: var(--accent-blue);
        transform: translateY(0);
        box-shadow: 0 2px 6px var(--glow-accent);
    }

    /* Focus effect for accessibility */
    .btn-add:focus {
        outline: 2px solid var(--gradient-purple);
        outline-offset: 2px;
    }

.btn-secondary {
    padding: 4px 8px !important;
    border-radius: 6px !important;
    font-size: 10px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px var(--glow-accent);
}


.btn-reset {
    /* Base button styles */
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--glow-accent);
}

    /* Hover effect */
    .btn-reset:hover {
        background-color: var(--primary-blue);
        box-shadow: 0 4px 12px var(--glow-accent);
        transform: translateY(-2px);
        
    }

    /* Active effect */
    .btn-reset:active {
        background-color: var(--accent-blue);
        transform: translateY(0);
        box-shadow: 0 2px 6px var(--glow-accent);
    }

    /* Focus effect for accessibility */
    .btn-reset:focus {
        outline: 2px solid var(--gradient-purple);
        outline-offset: 2px;
    }

.btn-view {
    /* View button styles */
    background-color: var(--secondary-green);
    color: var(--white);
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--glow-accent);
    text-decoration: none;
    display: inline-block;
}

    .btn-view:hover {
        background-color: var(--secondary-green);
        box-shadow: 0 4px 12px var(--glow-accent);
        transform: translateY(-2px);
    }

    .btn-view:active {
        background-color: var(--accent-green);
        transform: translateY(0);
        box-shadow: 0 2px 6px var(--glow-accent);
    }
/* Edit Button (tbutton) */
.tbutton {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--secondary-blue); /* Bright blue for Edit */
    color: var(--white);
    padding: 4px 6px !important;
    border: none;
    border-radius: 6px;
    font-size: 9px !important;
    font-weight: 400 !important;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px var(--glow-accent);
}

    .tbutton:hover {
        background-color: var(--primary-blue); /* Lighter blue on hover */
        box-shadow: 0 6px 14px rgba(96, 165, 250, 0.5); /* Enhanced glow */
        /*transform: translateY(-1px) scale(1.05);*/ /* Slight lift and scale */
    }

    .tbutton:active {
        background-color: var(--primary-blue); /* Darker blue when clicked */
        transform: translateY(0) scale(1); /* Reset scale */
        box-shadow: 0 2px 4px var(--glow-accent);
    }

    .tbutton:focus {
        outline: 2px solid var(--gradient-purple);
        outline-offset: 2px;
    }

/* Delete Button (tdbutton) */
.tdbutton {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background-color: #dc2626; /* Bright red for Delete */
    color: var(--white);
    padding: 4px 6px !important;
    border: none;
    border-radius: 6px;
    font-size: 9px !important;
    font-weight: 400 !important;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3); /* Red-based glow */
}

    .tdbutton:hover {
        background-color: #f87171; /* Lighter red on hover */
        box-shadow: 0 6px 14px rgba(248, 113, 113, 0.5); /* Enhanced red glow */
        transform: translateY(-1px) scale(1.05); /* Slight lift and scale */
    }

    .tdbutton:active {
        background-color: #b91c1c; /* Darker red when clicked */
        transform: translateY(0) scale(1); /* Reset scale */
        box-shadow: 0 2px 4px rgba(220, 38, 38, 0.3);
    }

    .tdbutton:focus {
        outline: 2px solid var(--gradient-purple);
        outline-offset: 2px;
    }

/* View Button (tvbutton) */
.tvbutton {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #facc15; /* Bright yellow (Amber 400) */
    color: #1f2937; /* Dark gray text for contrast */
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(250, 204, 21, 0.3); /* Yellow-based glow */
}

    .tvbutton:hover {
        background-color: #fde047; /* Lighter yellow on hover */
        box-shadow: 0 6px 14px rgba(250, 204, 21, 0.5); /* Enhanced yellow glow */
        transform: translateY(-1px) scale(1.05); /* Slight lift and scale */
    }

    .tvbutton:active {
        background-color: #eab308; /* Darker amber when clicked */
        transform: translateY(0) scale(1); /* Reset scale */
        box-shadow: 0 2px 4px rgba(250, 204, 21, 0.3);
    }

    .tvbutton:focus {
        outline: 2px solid var(--gradient-purple);
        outline-offset: 2px;
    }

   /* .btn{
        padding:4px 6px !important;
        font-size:0.8rem !important;
    }*/
/* Override Bootstrap btn-secondary (Close button) */
.btn-secondary {
    padding: 8px 16px; /* Consistent with table buttons */
    border-radius: 6px; /* Matches tbutton/tdbutton */
    font-size: 14px; /* Smaller for table/modals */
    font-weight: 500; /* Medium weight for clarity */
    transition: all 0.2s ease; /* Smooth transitions */
    box-shadow: 0 2px 6px var(--glow-accent); /* Theme-consistent glow */
}

    .btn-secondary:hover {
        transform: translateY(-2px); /* Subtle lift, removed scale */
        border: 1px solid rgba(108, 117, 125, 0.8); /* Subtle border enhancement */
    }

    .btn-secondary:active {
        transform: translateY(0); /* Reset lift */
        box-shadow: 0 2px 4px var(--glow-accent); /* Reduced shadow */
    }

    .btn-secondary:focus {
        outline: 2px solid var(--gradient-purple); /* Theme-consistent focus */
        outline-offset: 2px;
    }

/* Override Bootstrap btn-primary (Save button) */
.btn-primary {
    padding: 4px 8px; /* Consistent with table buttons */
    border-radius: 6px; /* Matches tbutton/tdbutton */
    font-size: 10px; /* Smaller for table/modals */
    font-weight: 500; /* Medium weight for clarity */
    transition: all 0.2s ease; /* Smooth transitions */
    box-shadow: 0 2px 6px var(--glow-accent); /* Theme-consistent glow */
}

    .btn-primary:hover {
        transform: translateY(-2px); /* Subtle lift, removed scale */
        border: 1px solid rgba(13, 110, 253, 0.8); /* Subtle border enhancement */
    }

    .btn-primary:active {
        transform: translateY(0); /* Reset lift */
        box-shadow: 0 2px 4px var(--glow-accent); /* Reduced shadow */
    }

    .btn-primary:focus {
        outline: 2px solid var(--gradient-purple); /* Theme-consistent focus */
        outline-offset: 2px;
    }

/* Override DataTables cell padding and font size */
.dataTable th,
.dataTable td {
    font-size: 0.9rem; /* Smaller font size */
    padding: 5px !important; /* Reduce padding (override DataTables default) */
}

/* Reduce DataTables wrapper elements (search bar, pagination, etc.) */
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    font-size: 1rem; /* Smaller font for search and pagination */
    padding: 0.2rem; /* Less padding */
}

/* Reduce spacing around the table */
.dataTables_wrapper {
    margin: 0;
    padding: 0;
}

.tfont-Color {
    /* If this has large font-size or padding, override it */
    font-size: 0.85rem !important;
    padding: 0.3rem !important;
}

.tbutton, .tdbutton ,.tvbutton{
    font-size: 1rem; /* Smaller buttons */
    padding: 0.2rem 0.5rem; /* Compact button padding */
}

/* Loading Animation Container */
.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 150px; /* Matches table body height */
    position: relative;
}
/* Enhanced Pulsing Dots Loader */
.dot-pulse {
    position: relative;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--primary-blue);
    box-shadow: 0 0 8px rgba(0, 136, 255, 0.5);
    animation: dot-pulse 1.8s ease-in-out infinite, color-shift 1.8s ease-in-out infinite;
}

    .dot-pulse:nth-child(2) {
        animation-delay: 0.3s;
        background-color: var(--gradient-purple);
        margin: 0 24px;
    }

    .dot-pulse:nth-child(3) {
        animation-delay: 0.6s;
        background-color: var(--accent-blue);
    }

/* Pulsing and Scaling Animation */
@keyframes dot-pulse {
    0%, 80%, 100% {
        transform: scale(0.7);
        opacity: 0.4;
    }

    40% {
        transform: scale(1.4);
        opacity: 1;
    }
}

/* Color Transition Animation */
@keyframes color-shift {
    0%, 100% {
        background-color: var(--primary-blue);
        box-shadow: 0 0 8px rgba(0, 136, 255, 0.5);
    }

    33% {
        background-color: var(--gradient-purple);
        box-shadow: 0 0 8px rgba(136, 0, 255, 0.5);
    }

    66% {
        background-color: var(--accent-blue);
        box-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
    }
}

/* Loading Container */
.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100px;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
}
/* Fade-in Animation for Table Rows */
.fade-in-row {
    opacity: 0;
    animation: fadeIn 0.5s ease-in forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Style for DataTables processing indicator */
div.dataTables_processing {
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    text-align: center;
}

.breadcrumb-item a {
    color: #B62E27;
}
.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    color: #B62E27;
}
.spinner-grow-sm {
    --bs-spinner-width: 0.6rem !important;
    --bs-spinner-height: 0.6rem !important;
}
.status-active {
    color: green;
    font-weight: bold;
}

.status-inactive {
    color: gray;
    font-weight: bold;
}

.status-blocked {
    color: red;
    font-weight: bold;
}

.status-unknown {
    color: black;
    font-weight: normal;
}

.status-pending {
    color: darkorange;
    font-weight: bold;
}

.status-completed {
    color: green;
    font-weight: bold;
}

.status-rejected {
    color: red;
    font-weight: bold;
}

.modal {
    z-index: 9999999;
}



/* ---------- Global Pull-Up Animation (reusable) ---------- */

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .animate-pullup,
    .animate-fadeup {
        animation: none !important;
        transition: none !important;
    }
}

/* Keyframes: pull up + slight overshoot then settle */
@keyframes pullUpBounce {
    0% {
        opacity: 0;
        transform: translateY(18px) scale(0.995);
    }

    60% {
        opacity: 1;
        transform: translateY(-6px) scale(1.002);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Subtle fade + translate (no bounce) */
@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(12px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Utility classes */
.animate-pullup {
    animation-name: pullUpBounce;
    animation-timing-function: cubic-bezier(.22,.9,.35,1); /* snappy feel */
    animation-duration: 420ms;
    animation-fill-mode: both; /* keep final state */
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.animate-fadeup {
    animation-name: fadeUp;
    animation-duration: 300ms;
    animation-timing-function: ease-out;
    animation-fill-mode: both;
    will-change: transform, opacity;
}

/* Optional duration modifiers */
.anim-short {
    animation-duration: 280ms !important;
}

.anim-long {
    animation-duration: 600ms !important;
}

/* Helpful utility to stagger children when needed */
.animate-stagger > * {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeUp 360ms ease-out forwards;
}

    .animate-stagger > *:nth-child(1) {
        animation-delay: 0ms;
    }

    .animate-stagger > *:nth-child(2) {
        animation-delay: 60ms;
    }

    .animate-stagger > *:nth-child(3) {
        animation-delay: 120ms;
    }

    .animate-stagger > *:nth-child(4) {
        animation-delay: 180ms;
    }


/* ========================================
   Card pull fade animation    -> end
   ======================================== */

/* Live Heat – glowing animation */
.live-btn, .normal-btn {
    position: relative;
    background: #B62E27 !important;
    color: #fff !important;
    font-weight: bold;
    border: 2px solid #B62E27;
}

    .normal-btn:hover {
        opacity: 0.9;
    }

    .live-btn::before {
        content: "";
        width: 10px;
        height: 10px;
        background: #006400;
        border-radius: 50%;
        display: inline-block;
        margin-right: 8px;
        animation: blink 1s infinite;
    }

    .normal-btn::before {
        content: "";
        width: 10px;
        height: 10px;
        background: #000;
        border-radius: 50%;
        display: inline-block;
        margin-right: 8px;
        /*animation: blink 1s infinite;*/
    }

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.2;
    }
}


:root {
    /* Your existing red theme colors (already defined) */
    --primary-red: #B62E27;
    --secondary-red: #7A1C17;
    --accent-red: #FF9999;
    --gradient-red: #A61B1A;
    --glow-red-accent: rgba(182, 46, 39, 0.15);
}

/* Global Red Theme Spinner */
.spinner-red {
    width: 44px;
    height: 44px;
    border: 4px solid var(--glow-red-accent);
    border-top: 4px solid var(--primary-red);
    border-radius: 50%;
    animation: spin-red 1s linear infinite;
    box-sizing: border-box;
}

    .spinner-red::before {
        content: '';
        position: absolute;
        inset: 4px;
        border: 4px solid transparent;
        border-top: 4px solid var(--accent-red);
        border-radius: 50%;
        animation: spin-red-inner 2s ease-in-out infinite;
    }

@keyframes spin-red {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes spin-red-inner {
    0% {
        transform: rotate(0deg);
        opacity: 0.6;
    }

    50% {
        transform: rotate(180deg);
        opacity: 1;
    }

    100% {
        transform: rotate(360deg);
        opacity: 0.6;
    }
}

/* Optional sizes - just add these classes */
.spinner-red.sm {
    width: 24px;
    height: 24px;
    border-width: 3px;
}

    .spinner-red.sm::before {
        inset: 3px;
        border-width: 3px;
    }

.spinner-red.lg {
    width: 64px;
    height: 64px;
    border-width: 6px;
}

    .spinner-red.lg::before {
        inset: 6px;
        border-width: 6px;
    }

.spinner-red.fullscreen {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    width: 80px;
    height: 80px;
    border-width: 8px;
}

    .spinner-red.fullscreen::before {
        inset: 8px;
        border-width: 8px;
    }
/*remove arrow marks for input type of number*/
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.modal {
    z-index: 9999 !important;
}