﻿.logo{
  width: 55px;
}
/* Modern Professional Page Loader */
.page-loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #ffffff 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  backdrop-filter: blur(2px);
}

.page-loader-wrapper.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

/* Animated Logo/Icon */
.loader-logo {
  position: relative;
  width: 120px;
  height: 120px;
}

.loader-icon {
  position: relative;
  width: 100%;
  height: 100%;
  animation: pulse 2s ease-in-out infinite;
}

.loader-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.loader-circle-bg {
  fill: none;
  stroke: #e5e7eb;
  stroke-width: 4;
}

.loader-circle-progress {
  fill: none;
  stroke: #1e3a8a;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 251.2;
  stroke-dashoffset: 251.2;
  animation: loader-progress 2s ease-in-out infinite;
}

.loader-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #1e3a8a 0%, rgba(30, 58, 138, 0.8) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(30, 58, 138, 0.3);
  animation: center-pulse 2s ease-in-out infinite;
}

.loader-center i {
  font-size: 2rem;
  color: white;
  animation: icon-rotate 3s linear infinite;
}

/* Text Animation */
.loader-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.loader-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e3a8a;
  margin: 0;
  letter-spacing: 0.5px;
}

.loader-dots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.loader-dots span {
  width: 8px;
  height: 8px;
  background: #1e3a8a;
  border-radius: 50%;
  display: inline-block;
  animation: dot-bounce 1.4s ease-in-out infinite;
}

.loader-dots span:nth-child(1) {
  animation-delay: 0s;
}

.loader-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.loader-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

/* Progress Bar */
.loader-progress {
  width: 200px;
  height: 4px;
  background: #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.loader-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #1e3a8a 0%, rgba(30, 58, 138, 0.8) 50%, #1e3a8a 100%);
  background-size: 200% 100%;
  border-radius: 10px;
  animation: progress-flow 2s ease-in-out infinite;
}

/* Animations */
@keyframes loader-progress {
  0% {
    stroke-dashoffset: 251.2;
  }
  50% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: -251.2;
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes center-pulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 8px 24px rgba(30, 58, 138, 0.3);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 12px 32px rgba(30, 58, 138, 0.5);
  }
}

@keyframes icon-rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes dot-bounce {
  0%, 80%, 100% {
    transform: translateY(0);
    opacity: 0.7;
  }
  40% {
    transform: translateY(-10px);
    opacity: 1;
  }
}

@keyframes progress-flow {
  0% {
    width: 0%;
    background-position: 0% 0%;
  }
  50% {
    width: 70%;
    background-position: 100% 0%;
  }
  100% {
    width: 100%;
    background-position: 200% 0%;
  }
}
/* Global font setup */
body {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem; /* a bit smaller, cleaner */
    line-height: 1.6;
    color: #212529; /* Bootstrap default dark */
}

/* Headings with stronger look */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.5px;
}

/* Card titles, labels */
.card-title, .fw-bold {
    font-weight: 600;
}

/* Muted text improvement */
.text-muted {
    color: #6c757d !important;
}

.timeline-item-wrapper {
    max-height: 500px;       /* Fixed height */
    overflow-y: auto;
    padding: 1rem;
}

/* Scrollbar styling */
.timeline-item-wrapper::-webkit-scrollbar {
    width: 6px;             /* Thin scrollbar */
}

.timeline-item-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;    /* Light gray track */
    border-radius: 3px;
}

.timeline-item-wrapper::-webkit-scrollbar-thumb {
    background-color: #888; /* Darker gray thumb */
    border-radius: 3px;
}

.timeline-item-wrapper::-webkit-scrollbar-thumb:hover {
    background-color: #555; /* Darker on hover */
}

.img-style-1{
  border-radius:50%;width:30px;border:2px solid var(--card-color);box-shadow:0px 2px 10px 0px rgba(0,0,0,0.2)
}

.img-style-1:hover{-webkit-transform:translateY(-4px) scale(1.02);-moz-transform:translateY(-4px) scale(1.02);-ms-transform:translateY(-4px) scale(1.02);-o-transform:translateY(-4px) scale(1.02);transform:translateY(-4px) scale(1.02);z-index:999}.team-info li:hover img{-webkit-box-shadow:0 14px 24px rgba(62,57,107,0.2);box-shadow:0 14px 24px rgba(62,57,107,0.2)}

.sidebar{
  width:200px;
}
#main-content{
  width:calc(100%);
}
.sidebar .metismenu ul a::before
{
 content: '';
}

.sidebar .metismenu ul a{
  padding: 8px 15px 8px 30px;
}

.accordion-button:focus{
    z-index: 3;
    border-color: unset !important;
    outline: 0;
    box-shadow: unset !important;
}
.filter-sidebar {
    background: #f9f9fb;
    border-radius: 4px; /* subtle rounding */
    padding: 0.5rem;
}

/* Accordion Button */
.accordion-button {
    background-color: #fff;
    border-radius: 4px; /* subtle rounding */
    font-weight: 600;
}

.accordion-button:not(.collapsed) {
    background-color: #e9f0f8;
    color: #007aff;
}

/* Filter Buttons */
.filter-section .filter-option {
    border-radius: 4px; /* subtle rounding */
    border-width: 1px;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background-color: #fff;
    color: #333;
    box-shadow: none;
    transition: none;
}

.filter-section .filter-option.active {
    background-color: #007aff !important;
    color: #fff !important;
    border-color: #007aff !important;
}

/* Selected Filters Badges */
#include-tags .badge,
#exclude-tags .badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
    border-radius: 4px; /* subtle rounding */
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 500;
}

#include-tags .badge {
    background-color: #d0f0d0;
    color: #117a21;
}

#exclude-tags .badge {
    background-color: #fddede;
    color: #d32f2f;
}

#include-tags .badge .btn-close,
#exclude-tags .badge .btn-close {
    width: 0.5rem;
    height: 0.5rem;
    background-color: rgba(0,0,0,0.1);
    border-radius: 2px; /* subtle square */
    padding: 0;
}

/* Reset Button */
#reset-filters {
    font-size: 0.75rem;
    padding: 0.2rem 0.4rem;
}
.filter-buttons{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}


        /* Fixed column widths */
        .col-task-title { min-width: 250px; }
        .col-status, .col-priority, .col-type { min-width: 120px; }
        .col-task-id { min-width: 100px; }
        .col-sp { min-width: 100px; }
        .col-unplanned { min-width: 80px; }
        .col-epic { min-width: 150px; }
        .col-actions { min-width: 50px; }

        /* FIX: Fixed width for column 1 to hold the indent line and checkbox */
        .col-fixed-indent { 
            width: 56px; 
            min-width: 56px; 
            /* Remove TD padding and control spacing internally */
            padding: 0 !important; 
        } 

        /* Custom scrollbar for the table content area */
        #task-table-body {
            overflow-x: auto;
        }

        /* Task Row specific styling */
        .task-row:hover {
            background-color: #f7f9fd;
        }

        /* Subtask specific styling */
        .subtask-header-row {
            background-color: #f9fafb;
            border-bottom: 1px solid #e5e7eb;
        }

        .subtask-row {
            background-color: #ffffff;
        }
        .subtask-row:hover {
            background-color: #f7f9fd;
        }

        /* Visual connection line for subtasks */
        .subtask-indent-line {
            width: 1px;
            height: 100%;
            background-color: #d1d5db;
            position: absolute;
            left: 20px; 
            top: 0;
        }

        /* Styling for the interactive badges */
        .task-badge {
            display: inline-flex;
            align-items: center;
            padding: 4px 12px;
            border-radius: 9999px;
            font-weight: 500;
            font-size: 0.75rem;
            cursor: pointer;
            transition: background-color 0.15s;
        }

        /* Smaller badge specifically for subtask status, adjusted for better alignment */
        .subtask-badge {
            display: inline-flex;
            align-items: center;
            padding: 2px 8px;
            border-radius: 9999px;
            font-weight: 500;
            font-size: 0.75rem;
            cursor: pointer;
            transition: background-color 0.15s;
        }

        /* Styling for the table header */
        #task-table-header th {
            font-size: 0.75rem;
            font-weight: 600;
            color: #6b7280;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        /* Style for contenteditable fields */
        [contenteditable="true"]:focus {
            background-color: #fff;
            box-shadow: 0 0 0 1px #1e3a8a;
            outline: none;
        }