/* 1. Google Font Import */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/* 2. CSS Variables for Corporate Colors */
:root {
  --primary-color: #ad2831; /* Maroon */
  --dark-color: #000000;      /* Black */
  --light-gray: #f4f4f4;      /* Light Gray for backgrounds */
  --font-color: #333;         /* Dark gray for body text */
  --border-color: #ddd;       /* Consistent border color */

    /* Dashboard Card Colors */
    --users-color: #7c6cf2;
    --services-color: #5dcad1;
    --clients-color: #65d6a6;
    --tasks-color: #ff9f6e;
    --engagements-color: #f28db2;
    --departments-color: #8fa8ff;
    --recruitment-color: #c084fc;
    --recycle-color: #9ca3af;

}


/* 3. General Body Styling */
body {
  font-family: 'Poppins', sans-serif;
  background-color: white!important;
  color: var(--font-color);
}


/* mobile naviagtion*/
/* Premium Mobile Bottom Nav */
.mobile-bottom-nav {
    background: rgba(33, 37, 41, 0.95) !important; /* Slight transparency */
    backdrop-filter: blur(10px); /* iPhone-style blur */
    height: 70px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: env(safe-area-inset-bottom); /* For notched iPhones */
}

.mobile-nav-link {
    color: #adb5bd !important;
    transition: all 0.2s ease;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mobile-nav-link i {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.mobile-nav-link small {
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-nav-link.active {
    color: #ffffff !important;
}

.mobile-nav-link.active i {
    color: #ad2831; /* Your Maroon corporate color */
}

/* Fix for the Dropup Menu positioning */
.mobile-bottom-nav .dropdown-menu {
    border-radius: 15px 15px 0 0;
    width: 100vw;
    margin-bottom: 5px !important;
    border: none;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.3);
}

.mobile-bottom-nav .dropdown-item {
    padding: 12px 20px;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* end of mobile navigation*/


/* Container for the table */
.custom-table-card {
    background: #ffffff !important;
    border-radius: 12px;
    border: 1px solid #e0e6ed;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2.5rem;
    overflow: hidden;
}

/* Header bar */
.table-section-title {
    padding: 1.25rem;
    background-color: #f8f9fa !important;
    border-bottom: 2px solid #dee2e6;
    font-weight: 700;
    color: #212529 !important; /* Force Dark Text */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Force Table Text to be Visible */
.custom-table thead th {
    background-color: #f1f3f5 !important;
    color: #495057 !important; /* Grayish dark for headers */
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    padding: 1rem;
}

.custom-table tbody td {
    color: #212529 !important; /* Deep black/gray for rows */
    background-color: #ffffff !important;
    padding: 1.2rem 1rem;
    border-bottom: 1px solid #f0f0f0;
}

/* Link Visibility */
.custom-table a {
    color: #0d6efd !important;
    font-weight: 600;
    text-decoration: none;
}
.custom-table a:hover {
    text-decoration: underline;
}

.online-indicator {
    position: absolute;
    bottom: 5px;
    right: 15px;
    width: 12px;
    height: 12px;
    background-color: #28a745;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 6px rgba(40, 167, 69, 0.8);
}


/* directors and maangers dashboards cards */
/* =========================
   MINI DASHBOARD CARDS
========================= */

.mini-stat-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;

    padding: 18px;
    border-radius: 22px;

    text-decoration: none;
    background: #ffffff;

    transition: all 0.25s ease;

    overflow: hidden;
    min-height: 110px;

    border: 1px solid rgba(0,0,0,0.04);

    box-shadow:
        0 4px 14px rgba(0,0,0,0.04);
}

.mini-stat-card:hover {
    transform: translateY(-4px);
    text-decoration: none;

    box-shadow:
        0 12px 24px rgba(0,0,0,0.08);
}


/* =========================
   ICONS
========================= */

.mini-icon {
    width: 58px;
    height: 58px;

    border-radius: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 1.4rem;

    flex-shrink: 0;
}


/* =========================
   TEXT
========================= */

.mini-content {
    display: flex;
    flex-direction: column;
}

.mini-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #777;
    margin-bottom: 4px;
}

.mini-content h4 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark-color);
}


/* =========================
   CARD COLOR THEMES
========================= */

.mini-stat-card.users .mini-icon {
    background: rgba(124, 108, 242, 0.15);
    color: var(--users-color);
}

.mini-stat-card.services .mini-icon {
    background: rgba(93, 202, 209, 0.15);
    color: var(--services-color);
}

.mini-stat-card.clients .mini-icon {
    background: rgba(101, 214, 166, 0.15);
    color: var(--clients-color);
}

.mini-stat-card.tasks .mini-icon {
    background: rgba(255, 159, 110, 0.15);
    color: var(--tasks-color);
}

.mini-stat-card.engagements .mini-icon {
    background: rgba(242, 141, 178, 0.15);
    color: var(--engagements-color);
}

.mini-stat-card.departments .mini-icon {
    background: rgba(143, 168, 255, 0.15);
    color: var(--departments-color);
}

.mini-stat-card.recruitment .mini-icon {
    background: rgba(192, 132, 252, 0.15);
    color: var(--recruitment-color);
}

.mini-stat-card.recycle .mini-icon {
    background: rgba(156, 163, 175, 0.15);
    color: var(--recycle-color);
}


/* =========================
   ALERT DOT
========================= */

.mini-alert-dot {
    width: 10px;
    height: 10px;

    background: #ff3b30;

    border-radius: 50%;

    display: inline-block;
    margin-left: 6px;

    animation: pulse 1.2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}


/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    .mini-stat-card {
        min-height: 95px;
        padding: 14px;
    }

    .mini-icon {
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
    }

    .mini-content h4 {
        font-size: 1.2rem;
    }

}


/* asigned tasks page*/

/* Horizontal Nav Styling */
.task-nav-container {
    background: #ffffff;
    padding: 10px 0;
    border-bottom: 1px solid #eef0f2;
    margin-bottom: 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.task-nav-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 5px;
}

.task-nav-tabs::-webkit-scrollbar { display: none; } /* Hide scrollbar */

.nav-pill-link {
    padding: 8px 18px;
    border-radius: 50px;
    background: #f1f3f5;
    color: #495057;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.nav-pill-link:hover {
    background: #e9ecef;
    color: #0d6efd;
}

.nav-pill-link.active {
    background: #0d6efd;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.25);
}

/* Premium Table Badges */
.badge-soft {
    padding: 5px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.status-in-progress { background: #e0f2fe; color: #0369a1; }
.status-paused { background: #fef3c7; color: #92400e; }
.status-completed { background: #dcfce7; color: #15803d; }
.status-review { background: #f3e8ff; color: #7e22ce; }
.status-rejected { background: #fee2e2; color: #b91c1c; }



/* Container for the Segmented Navigation */
.task-nav-wrapper {
    background-color: #f1f3f5;
    padding: 4px;
    border-radius: 12px; /* Smooth outer corner */
    display: inline-flex; /* Keeps it tight */
    width: 100%; /* Spans the page */
    overflow-x: auto;
    margin-bottom: 2rem;
}

/* Individual Tab Button */
.task-nav-btn {
    flex: 1; /* Makes all buttons equal width */
    text-align: center;
    padding: 10px 16px;
    font-weight: 600;
    font-size: 0.85rem;
    color: #ad2831;
    text-decoration: none !important;
    border-radius: 8px; /* Inner corner */
    transition: all 0.2s ease;
    white-space: nowrap;
}

.task-nav-btn:hover {
    color: #ad2831;
    background-color: rgba(255, 255, 255, 0.5);
}

/* The "Active" State - High Contrast */
.task-nav-btn.active {
    background-color: #ffffff !important; /* White button on gray background */
    color: #ad2831 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); /* Subtle lift */
}

/* Hide scrollbar for mobile */
.task-nav-wrapper::-webkit-scrollbar {
    display: none;
}

.table-danger-light {
    background-color: #fff5f5 !important;
}
.table-warning-light {
    background-color: #fffbeb !important;
}
.x-small {
    font-size: 0.7rem;
}



/* dashboard buttons*/

.task-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.task-btn i {
  font-size: 0.9rem;
}

.task-count {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.8rem;
}

/* Color variants */
.task-btn-danger {
  background: #f8d7da;
  color: #842029;
}
.task-btn-danger:hover {
  background: #f1bfc5;
}

.task-btn-primary {
  background: #cfe2ff;
  color: #084298;
}
.task-btn-primary:hover {
  background: #b6d4fe;
}

.task-btn-secondary {
  background: #e2e3e5;
  color: #41464b;
}
.task-btn-secondary:hover {
  background: #d6d8db;
}

.task-btn-warning {
  background: #fff3cd;
  color: #664d03;
}
.task-btn-warning:hover {
  background: #ffe69c;
}

.task-btn-info {
  background: #cff4fc;
  color: #055160;
}
.task-btn-info:hover {
  background: #b6effb;
}

.task-btn-success {
  background: #d1e7dd;
  color: #0f5132;
}
.task-btn-success:hover {
  background: #badbcc;
}


/* Fix Table Spillage & Column Widths */
.custom-table {
    table-layout: fixed; /* Crucial for controlling column widths */
    width: 100%;
}

.custom-table th, .custom-table td {
    padding: 8px 12px !important; /* Thinner rows */
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis; /* Adds '...' if text is too long */
    white-space: nowrap;
}

/* Specific Column Control */
.col-title    { width: 25%; }
.col-status   { width: 15%; }
.col-date     { width: 12%; }
.col-user     { width: 15%; }
.col-job      { width: 20%; }
.col-actions  { width: 13%; }

/* Title Link Truncation */
.task-title-link {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

/* Minimalist Create Button */
.add-task-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none !important;
    color: #6c757d;
    transition: color 0.2s;
}
.add-task-btn:hover { color: #0d6efd; }
.add-task-btn i { font-size: 1.2rem; }
.add-task-btn span { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.5px; }

/* Pagination Tighter */
.pagination { margin-top: 1rem !important; margin-bottom: 0 !important; }



/* start of index page variables */


/* Core Values Section (Cards and Icons) */
.core-values-section {
  padding: 60px 0;
  background-color: var(--light-gray);
  width: 100%;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.value-card {
  background-color: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.value-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(173, 40, 49, 0.1);
}

.value-card .icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.value-card h4 {
  color: var(--dark-color);
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.value-card p {
    font-size: 0.9rem;
}

/* Feature Sections (Workflow Hub, Dashboards, File Management) */
.feature-section-container {
    padding: 80px 0;
    background-color: white;
}

.feature-row {
    display: flex;
    align-items: center;
    margin-bottom: 80px;
}

.feature-text {
    padding: 0 40px;
}

.feature-text h2 {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-image {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

.feature-image img {
    width: 100%;
    display: block;
}

/* end og index page variables  */

/* start of login page  */

/* Login Page Container and Card */
.login-page-container {
    min-height: 100vh;
    width: 100%;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.login-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: none;
}

/* Left Side: Branding */
.login-branding-section {
    background-color: var(--primary-color);
    color: white;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.login-branding-section h2 {
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Right Side: Form */
.login-form-section {
    padding: 40px;
    background-color: white;
}

.login-form-section h2 {
    color: var(--primary-color);
    font-weight: 700;
}

.btn-login {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: bold;
    padding: 10px 0;
    transition: background-color 0.3s ease, transform 0.2s ease;
    color: white;
}

.btn-login:hover {
    background-color: #8c2027;
    transform: translateY(-2px);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(173, 40, 49, 0.25);
}

/* end of login page  */


/* ==========================================
   USER LIST PAGE STYLING
   ========================================== */

.user-stats-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.85rem;
}

.mini-stat {
    display: flex;
    align-items: center;
    gap: 4px;
}


/* --- Dashboard & Header Styles --- */
.dashboard-header {
  margin-bottom: 2rem;
}

.dashboard-header h1 {
  font-weight: 700;
  color: var(--dark-color);
}

.dashboard-header .lead {
  color: #6c757d;
  font-size: 1.2rem;
}

/* --- Registration Button (from Login Styles) --- */
.btn-login {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  font-weight: bold;
  padding: 10px 0;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-login:hover {
  background-color: #8c2027;
  border-color: #8c2027;
  transform: translateY(-2px);
}

/* --- User Profile Card Main Container --- */
.user-profile-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  text-decoration: none;
  color: var(--dark-color);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 5px solid var(--primary-color);
}

.user-profile-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* --- User Card Header --- */
.user-card-header {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.user-card-header .user-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0;
}

.user-card-header .user-role {
  font-size: 0.9rem;
  color: #6c757d;
}

/* --- Stat Grid & Items --- */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat-item {
  display: flex;
  align-items: center;
  background-color: var(--light-gray);
  padding: 2rem;
  border-radius: 5px;
}

.stat-item .stat-icon {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-right: 10px;
  width: 25px;
  text-align: center;
}

.stat-item .stat-info .stat-value {
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
}

.stat-item .stat-info .stat-label {
  font-size: 0.75rem;
  color: #6c757d;
}

/* --- User Card Footer --- */
.user-card-footer {
  padding: 0.75rem 1rem;
  background-color: var(--light-gray);
  border-top: 1px solid var(--border-color);
  text-align: center;
  font-size: 0.8rem;
  color: #6c757d;
}

.user-card-avatar{
    height: 45px;
    width: 45px;
}

/* --- Form Input Focus (Filters) --- */
.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(173, 40, 49, 0.25);
}

.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(173, 40, 49, 0.25);
}

/* ==========================================
   USER LIST PAGE STYLING
   ========================================== */

   /* --- Optimized Stat Grid for Mobile --- */
.stat-grid {
    display: grid;
    /* Always forces two columns, even on the smallest screens */
    grid-template-columns: repeat(2, 1fr); 
    gap: 0.5rem; /* Reduced gap to save horizontal space */
}

.stat-item {
    display: flex;
    align-items: center;
    background-color: var(--light-gray);
    /* SIGNIFICANTLY reduced padding to keep cards short */
    padding: 0.5rem; 
    border-radius: 5px;
    min-height: 50px;
}

.stat-item .stat-icon {
    font-size: 1.1rem; /* Smaller icons for mobile */
    margin-right: 8px;
    width: 20px;
}

.stat-item .stat-info .stat-value {
    font-size: 1.1rem; /* Shrunk from 1.5rem */
}

.stat-item .stat-info .stat-label {
    font-size: 0.65rem; /* Extra small labels to prevent text wrapping */
    white-space: nowrap;
}

/* --- Mobile Responsiveness for Profile Cards --- */
@media (max-width: 768px) {
    /* This makes the profile cards themselves show 2 per row on tablets/large phones */
    .col-md-6 {
        width: 50%;
        flex: 0 0 auto;
    }
}

@media (max-width: 480px) {
    /* On very small phones, we keep 2 stats per row but go to 1 profile card per row */
    .col-md-6 {
        width: 100%;
    }
    
    .user-card-footer {
        font-size: 0.7rem;
        padding: 0.5rem;
    }
}



/* ==========================================
   MOBILE TABLE-TO-CARD TRANSFORMATION
   (For Tasks and Engagements)
   ========================================== */

@media (max-width: 768px) {


        .task-nav-wrapper {
        display: flex !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        padding: 10px 5px !important;
        gap: 8px !important;
        /* Smooth scrolling for mobile */
        -webkit-overflow-scrolling: touch; 
        scrollbar-width: none; /* Hide scrollbar for Firefox */
    }

    .task-nav-wrapper::-webkit-scrollbar {
        display: none; /* Hide scrollbar for Chrome/Safari */
    }

    .task-nav-btn {
        flex: 0 0 auto !important; /* Prevents buttons from shrinking */
        min-width: 100px; /* Forces enough width so 3-4 fit, others peek out */
        text-align: center;
        padding: 8px 12px !important;
        font-size: 0.8rem !important;
        border-radius: 20px !important;
    }
    /* 1. Force table elements to block to stack them */
    .custom-table-card .table, 
    .custom-table-card tbody, 
    .custom-table-card tr, 
    .custom-table-card td {
        display: block !important;
        width: 100% !important;
    }

    /* 2. Hide the header row completely */
    .custom-table-card thead {
        display: none !important;
    }

    /* 3. Style the row as a Card */
    .custom-table-card tr {
        margin-bottom: 15px !important;
        border: 1px solid var(--border-color) !important;
        border-radius: 12px !important;
        background: #fff !important;
        padding: 10px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    }

    /* 4. Style each cell to show labels on the left */
    .custom-table-card td {
        text-align: right !important;
        padding: 10px 12px !important;
        border: none !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        font-size: 0.85rem !important;
        border-bottom: 1px dashed #eee !important;
    }

    /* Remove border from the last item in the card */
    .custom-table-card td:last-child {
        border-bottom: none !important;
        justify-content: center !important;
        padding-top: 15px !important;
    }

    /* 5. Inject the Label using data-label attribute */
    .custom-table-card td::before {
        content: attr(data-label);
        font-weight: 700 !important;
        color: var(--primary-color);
        text-transform: uppercase;
        font-size: 0.7rem;
        float: left;
    }

    /* 6. Fix the Horizontal Scroll on Task Tabs */
    .task-nav-wrapper {
        display: flex !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        padding: 10px 0 !important;
        gap: 10px !important;
        -webkit-overflow-scrolling: touch;
    }
    
    .task-nav-wrapper::-webkit-scrollbar {
        display: none; /* Keep it clean */
    }

    .task-nav-btn {
        flex: 0 0 auto !important;
    }
}


/* ==========================================
   REGISTRATION PAGE STYLING
   ========================================== */

.registration-page-container {
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

.registration-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Maroon Side Panel */
.registration-branding-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #7d1d24 100%);
    color: white;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

/* Form Section */
.form-wrapper {
    padding: 2.5rem;
    background: white;
}

.form-header h2 {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 0.4rem;
}

/* User-Friendly Inputs */
.form-control, .form-select {
    padding: 0.6rem 1rem;
    border-radius: 8px;
    border: 1px solid #ced4da;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(173, 40, 49, 0.15);
}

/* Password Toggle Button */
.input-group-text {
    background-color: transparent;
    border-left: none;
    cursor: pointer;
    color: #6c757d;
}

.password-field {
    border-right: none;
}

/* Submit Button */
.btn-registration {
    background-color: var(--primary-color);
    color: white;
    font-weight: 700;
    padding: 0.8rem;
    border-radius: 8px;
    border: none;
    width: 100%;
    margin-top: 1rem;
    transition: transform 0.2s ease, background-color 0.3s ease;
}

.btn-registration:hover {
    background-color: #8c2027;
    transform: translateY(-2px);
}

/* --- Mobile Adjustments --- */
@media (max-width: 991px) {
    .registration-branding-section {
        padding: 2rem;
        text-align: center;
    }
    
    .form-wrapper {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .registration-page-container {
        padding: 0;
    }
    .registration-card {
        border-radius: 0;
    }
    .form-header h2 {
        font-size: 1.5rem;
    }
}

/* ==========================================
   SERVICES PAGE STYLING
   ========================================== */

/* 14. Colorful Service Card Styling */
.service-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-decoration: none;
    color: var(--dark-color);
    height: 100%;
    position: relative;
    overflow: hidden; /* Important for visual effects */
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;

    /* We will set this dynamically from Jinja2 */
    --accent-color: var(--primary-color);
}

.service-card:before { /* The color swoosh effect */
    content: '';
    position: absolute;
    top: -80px;
    left: 0;
    width: 100%;
    height: 120px;
    background: var(--accent-color);
    transform: skewY(-8deg);
    transition: all 0.4s ease;
}

.service-card .card-icon {
    position: relative; /* Bring icon above the swoosh */
    width: 80px;
    height: 80px;
    background: #fff;
    margin: 20px auto 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--accent-color);
    box-shadow: 0 0 0 5px var(--accent-color);
    transition: all 0.3s ease;
}

.service-card .card-body {
    text-align: center;
    padding: 1.5rem;
    flex-grow: 1;
}

.service-card .card-title {
    font-weight: 700;
    margin-top: 10px;
}

/* --- The HOVER Effects --- */
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.service-card:hover:before {
    height: 100%; /* Expand the swoosh to fill the card */
    transform: skewY(0deg);
}

.service-card:hover .card-icon {
    background: var(--accent-color);
    color: #fff;
    box-shadow: 0 0 0 5px #fff;
    transform: scale(1.1);
}

.service-card:hover .card-title {
    color: #fff; /* White text on hover */
}

.service-card:hover .card-text {
    color: rgba(255, 255, 255, 0.85); /* Slightly transparent white text */
}

/* ==========================================
   SERVICES PAGE STYLING
   ========================================== */





/* ==========================================
   start VAT_Form STYLING
   ========================================== */
   
/* Simple view toggle styles */
#prevVatSummaryTable.simple-view .detailed-col {
    display: none;
}

/* In simple view, show only:
   1. MONTH (col 1)
   2. Sales Zero Rated (col 2)
   3. Sales Exempt (col 3)
   4. Sales @16% (col 4)
   5. Sales @8% (col 5)
   6. Total Sales (col 6)
   7. Purchases Zero Rated (col 10)
   8. Purchases Exempt (col 11)
   9. Purchases @16% (col 12)
   10. Purchases @8% (col 13)
   11. Total Purchases (col 14)
   12. Net VAT (col 20) 
*/

/* Make sure these columns are always visible */
#prevVatSummaryTable.simple-view th:nth-child(1),
#prevVatSummaryTable.simple-view td:nth-child(1),
#prevVatSummaryTable.simple-view th:nth-child(2),
#prevVatSummaryTable.simple-view td:nth-child(2),
#prevVatSummaryTable.simple-view th:nth-child(3),
#prevVatSummaryTable.simple-view td:nth-child(3),
#prevVatSummaryTable.simple-view th:nth-child(4),
#prevVatSummaryTable.simple-view td:nth-child(4),
#prevVatSummaryTable.simple-view th:nth-child(5),
#prevVatSummaryTable.simple-view td:nth-child(5),
#prevVatSummaryTable.simple-view th:nth-child(6),
#prevVatSummaryTable.simple-view td:nth-child(6),
#prevVatSummaryTable.simple-view th:nth-child(10),
#prevVatSummaryTable.simple-view td:nth-child(10),
#prevVatSummaryTable.simple-view th:nth-child(11),
#prevVatSummaryTable.simple-view td:nth-child(11),
#prevVatSummaryTable.simple-view th:nth-child(12),
#prevVatSummaryTable.simple-view td:nth-child(12),
#prevVatSummaryTable.simple-view th:nth-child(13),
#prevVatSummaryTable.simple-view td:nth-child(13),
#prevVatSummaryTable.simple-view th:nth-child(14),
#prevVatSummaryTable.simple-view td:nth-child(14),
#prevVatSummaryTable.simple-view th:nth-child(20),
#prevVatSummaryTable.simple-view td:nth-child(20) {
    display: table-cell !important;
}

/* Highlight the Net VAT column */
#prevVatSummaryTable.simple-view .net-vat-cell {
    background-color: #f8f9fa;
    font-weight: bold;
    border-left: 2px solid #dee2e6 !important;
}

/* Adjust table width in simple view */
#prevVatSummaryTable.simple-view {
    width: auto !important;
}

#prevVatSummaryTable.simple-view th,
#prevVatSummaryTable.simple-view td {
    padding: 6px 10px;
    font-size: 0.9rem;
}



/* Stylish VAT Form Modal & Container */
#vatFormChoiceModal .modal-content {
    border-top: 5px solid var(--primary-color);
}
#vatFormChoiceModal .modal-header {
    border-bottom: 1px solid var(--border-color);
}
#vatFormContainer {
    border: 1px dashed var(--border-color);
    padding: 1.5rem;
    border-radius: 10px;
    background-color: var(--light-gray);
}
#vatFormContainer h4 {
    color: var(--primary-color);
    font-weight: 700;
}





/* 21. VAT Filing Form Styling */
.filing-form-widget {
    border-top: 5px solid var(--primary-color);
}

.filing-form-header {
    text-align: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}
.filing-form-header h3 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0;
}
.filing-form-header p {
    margin-bottom: 0;
    font-weight: 600;
}

.form-section-header {
    background-color: var(--light-gray);
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    border-bottom: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
    margin: 0 -1.5rem 1.5rem; /* Extends to the edges of the widget-body */
}

/* This creates the two-column, table-like effect for each input row */
.form-grid-row {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-gray);
}
.form-grid-row:last-of-type {
    border-bottom: none;
}
.form-grid-row .form-label {
    font-weight: 600;
    margin-bottom: 0;
    padding-right: 1rem;
}

/* Style for the summary section to make it stand out */
.summary-row {
    background-color: var(--light-gray);
    border-top: 2px solid var(--border-color);
    margin-top: 1rem;
    font-size: 1.1rem;
}
.summary-row .form-label {
    color: var(--primary-color);
}

/* 21. VAT Filing Form Styling (Refined) */
/* The .form-grid-row and other styles from the previous step are still used */

/* This new rule helps align the labels in our grid */
.form-grid-row .form-label {
    font-weight: 600;
    margin-bottom: 0;
    padding-right: 1rem;
    /* This will right-align the text on medium screens and up */
    text-align: end; 
}

/* On small screens, we'll revert to left-alignment */
@media (max-width: 767.98px) {
    .form-grid-row .form-label {
        text-align: left;
    }
}

/* By default, elements marked for 'edit' are hidden. */
.edit-mode-element {
    display: none!important;
}

/* Elements marked for 'view' are shown by default. */
.view-mode-element {
    display: initial!important; /* Or block/flex/etc., depending on original display type */
}


/* Edit Mode State (When container has the class 'edit-mode-active') */
.edit-mode-active .edit-mode-element {
    display: initial!important; /* Show edit elements */
}

.edit-mode-active .view-mode-element {
    display: none!important; /* Hide view elements */
}

/* ==========================================
   start VAT_Form STYLING
   ========================================== */


/* ==========================================
   Notification STYLING
   ========================================== */

/* 22. Notifications Page Styling */
.notifications-container {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
}

.notifications-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--light-gray);
}

.notifications-header h1 {
    font-weight: 700;
    font-size: 1.75rem;
    color: var(--dark-color);
}

.notification-count-badge {
    background-color: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 50rem;
    font-weight: 600;
}

.notification-list {
    padding: 0 1.5rem;
}

.notification-row {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
}

.notification-row:last-child {
    border-bottom: none;
}

.notification-row:hover {
    background-color: #fcfcfc;
}

/* Style for unread notifications */
.unread-notification {
    background-color: #fff9f9; /* Subtle red background */
    border-left: 5px solid var(--primary-color);
    padding-left: 1rem;
}

.unread-notification:hover {
    background-color: #fdfdfd;
}

.notification-icon {
    flex-shrink: 0;
    margin-right: 1rem;
}

.icon-circle {
    /* Updated dimensions for the icon circle now that we only have the fallback icon */
    width: 40px; 
    height: 40px;
    border-radius: 50%;
    background-color: var(--light-gray);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 3px rgba(173, 40, 49, 0.1);
}

.notification-body {
    flex-grow: 1;
    margin-right: 1rem;
}

.notification-message {
    font-weight: 600;
    color: var(--dark-color);
}

.notification-timestamp {
    font-size: 0.8rem;
    margin-right: 0.5rem;
}

.notification-actions {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.notification-actions .action-btn {
    margin-bottom: 0.5rem;
}

.notifications-footer {
    text-align: center;
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    background-color: var(--light-gray);
}

/* ==========================================
   end of Notification STYLING
   ========================================== */



   /* task creation modal */
#taskModal .modal-content {
  border-radius: 1rem;
  border: none;
}

#taskModal .modal-header {
  background-color: #ad2831 !important;
  color: #fff;
}

#taskModal .form-floating > .form-control:focus,
#taskModal .form-floating > .form-select:focus {
  border-color: #ad2831;
  box-shadow: 0 0 0 0.2rem rgba(173, 40, 49, 0.25);
}

#taskModal .btn-primary {
  background-color: #ad2831;
  border-color: #ad2831;
}

#taskModal .btn-primary:hover {
  background-color: #8a2027; /* Darker shade for hover */
  border-color: #8a2027;
}

/* 15. User Profile Page Styling */
.profile-header {
    display: flex;
    align-items: center;
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-right: 1.5rem;
}

.profile-info .profile-name {
    font-weight: 700;
    font-size: 2rem;
    margin: 0;
}

.profile-info .profile-role {
    font-size: 1.1rem;
    color: #6c757d;
}

/* Reusable Widget Card */
.widget-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
    overflow: hidden; /* To keep rounded corners with the header */
}

.widget-card .widget-header {
    padding: 1rem 1.5rem;
    background-color: var(--light-gray);
    border-bottom: 1px solid var(--border-color);
}

.widget-card .widget-header h5 {
    margin: 0;
    font-weight: 700;
    color: var(--dark-color);
}

.widget-card .widget-body {
    padding: 1.5rem;
}

/* Compact Stat Cards for Profile */
.profile-stat-card {
    background: var(--light-gray);
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
}

.profile-stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.profile-stat-card .stat-label {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Styled List for User Details */
.details-list {
    list-style: none;
    padding: 0;
}

.details-list li {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}
.details-list li:last-child {
    border-bottom: none;
}
.details-list li i {
    color: var(--primary-color);
    margin-right: 15px;
    width: 20px;
    text-align: center;
}


/* ==========================================
   start of toast STYLING
   ========================================== */




.toast-notification {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-bottom: 10px;
    min-width: 300px;
    max-width: 400px;
    animation: slideIn 0.3s ease;
    border-left: 4px solid #ad2831;
}

.toast-notification-content {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    gap: 12px;
}

.toast-icon {
    color: #ad2831;
    font-size: 1.2rem;
}

.toast-message-wrapper {
    flex: 1;
}

.toast-message {
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
}

.toast-time {
    font-size: 0.7rem;
    color: #6c757d;
}

.toast-action {
    color: #ad2831;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 4px 8px;
    border-radius: 4px;
}

.toast-action:hover {
    background: #f8f9fa;
}

.toast-close {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 4px;
}

.toast-close:hover {
    color: #666;
}

.toast-hiding {
    animation: slideOut 0.3s ease forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}


/* ==========================================
   End of toast STYLING
   ========================================== */



   /* Limit card height and enable scroll */
.task-table-wrapper {
    max-height: 45rem;
    overflow-y: auto;
}

/* Sticky header */
.task-table thead th {
    position: sticky;
    top: 0;
    background: white;
    z-index: 2;
}

/* Status row styling */
.status-row td {
    background: #f1f3f5;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
}

/* Client row */
.client-row td {
    background: #fafafa;
    font-weight: 500;
    color: #495057;
}

/* Hover behavior */
.task-hover-row {
    display: none;
    background-color: #f8f9fa;
}

.task-main-row:hover + .task-hover-row {
    display: table-row;
}


/* Base */
.status-row td {
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    color: #fff;
}

/* Individual colors */
.status-ASSIGNED td {
    background: #6c757d; /* grey */
}

.status-IN_PROGRESS td {
    background: #0d6efd; /* blue */
}

.status-UNDER_REVIEW td {
    background: #fd7e14; /* orange */
}

.transition-icon {
    transition: transform 0.2s ease;
}


.client-row td {
    background: #f8f9fa;
    border-top: 2px solid #dee2e6;
}

.client-label {
    font-weight: 600;
    color: #212529;
    padding: 4px 0;
    border-left: 4px solid #0d6efd;
    padding-left: 10px;
}