/**
 * NUCLEO SaaS - Custom Styles
 * Modern UI/UX Design with Brand Color Palette
 */

/* ============================================
   COLOR PALETTE (SCSS Variables)
   ============================================ */
:root {
    --nucleo-blue: #3E3B6D;
    --nucleo-mint: #7AF9C4;
    --nucleo-teal: #4AD8A3;
    --bg-light: #F8FAFC;
    --surface: #FFFFFF;
    --border-color: #E2E8F0;
    --text-muted: #64748B;
    --text-dark: #1E293B;
    
    --sidebar-width: 280px;
    --sidebar-bg: var(--nucleo-blue);
    --sidebar-text: #FFFFFF;
    --sidebar-hover: rgba(122, 249, 196, 0.1);
    --sidebar-active: var(--nucleo-mint);
    
    --primary-color: var(--nucleo-mint);
    --primary-text: var(--nucleo-blue);
    --hover-color: var(--nucleo-teal);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-size: 14px;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--nucleo-blue);
    font-weight: 600;
    margin-bottom: 1rem;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

/* ============================================
   SIDEBAR - Dark Blue with Mint Accents
   ============================================ */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    overflow: hidden;
    z-index: 1000;
    transition: transform 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    background: rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.sidebar-header img {
    max-width: 140px;
    height: auto;
    margin-bottom: 0.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.sidebar-header h4 {
    color: white;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.sidebar-header small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
}

.sidebar-nav {
    padding: 1rem 0;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
}

/* Hide scrollbar but keep functionality */
.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(122, 249, 196, 0.2);
    border-radius: 2px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(122, 249, 196, 0.4);
}

.sidebar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    padding: 0.875rem 1.5rem;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    margin: 0.25rem 0.5rem;
    border-radius: 8px;
    text-decoration: none;
}

.sidebar-nav .nav-link:not(.sidebar-section-toggle) {
    margin-left: 0;
    margin-right: 0;
}

.sidebar-nav .nav-link:hover {
    background: var(--sidebar-hover);
    border-left-color: var(--nucleo-mint);
    color: var(--nucleo-mint);
    transform: translateX(4px);
}

.sidebar-nav .nav-link.active {
    background: var(--sidebar-hover);
    border-left-color: var(--sidebar-active);
    color: var(--sidebar-active);
    font-weight: 600;
}

.sidebar-nav .nav-link i {
    margin-right: 0.75rem;
    width: 20px;
    font-size: 1.1rem;
    color: var(--nucleo-mint);
    transition: all 0.3s ease;
}

.sidebar-nav .nav-link:hover i,
.sidebar-nav .nav-link.active i {
    color: var(--nucleo-teal);
}

.sidebar-divider {
    margin: 1rem 0.5rem;
    border-color: rgba(255, 255, 255, 0.1);
}

/* Sidebar Section Toggle - Collapsible Sections */
.sidebar-section-toggle {
    color: var(--nucleo-mint) !important;
    padding: 0.875rem 1.5rem !important;
    font-size: 0.75rem !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700 !important;
    background: rgba(122, 249, 196, 0.1) !important;
    border-left: 3px solid var(--nucleo-mint) !important;
    margin: 0.75rem 0.5rem 0.25rem 0.5rem !important;
    border-radius: 4px !important;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.sidebar-section-toggle:hover {
    background: rgba(122, 249, 196, 0.15) !important;
    color: var(--nucleo-teal) !important;
}

.sidebar-section-toggle[aria-expanded="false"] .sidebar-chevron {
    transform: rotate(-90deg);
}

.sidebar-chevron {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.sidebar-section-title-text {
    flex: 1;
}

.sidebar-nav .collapse {
    margin-bottom: 0.5rem;
}

.sidebar-nav .collapse .nav-link {
    padding-left: 2.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0.15rem 0.5rem;
}

.sidebar-nav .collapse .nav-link.active {
    background: var(--sidebar-hover);
    border-left-color: var(--sidebar-active);
    color: var(--sidebar-active);
    font-weight: 600;
}

.sidebar-nav small.text-muted {
    color: rgba(255, 255, 255, 0.6);
    padding: 0.5rem 1.5rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Sidebar footer removed - logout is now in menu */

/* ============================================
   MAIN CONTENT AREA
   ============================================ */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: margin-left 0.3s ease;
    background: var(--bg-light);
}

/* ============================================
   TOP NAVBAR - Clean White
   ============================================ */
.navbar {
    background: var(--surface) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.navbar .navbar-text {
    color: var(--nucleo-blue);
    font-weight: 500;
}

.navbar-user-btn {
    color: var(--nucleo-blue) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: none;
    background: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.navbar-user-btn:hover {
    color: var(--nucleo-teal) !important;
}

.navbar-user-btn:focus {
    box-shadow: none;
}

.navbar-user-btn .bi-chevron-down {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.navbar-user-btn[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
}

.navbar .dropdown-menu {
    min-width: 250px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-top: 0.5rem;
}

.navbar .dropdown-header {
    padding: 0.75rem 1rem;
    color: var(--nucleo-blue);
    font-size: 0.875rem;
}

.navbar .dropdown-item {
    padding: 0.625rem 1rem;
    transition: all 0.2s ease;
}

.navbar .dropdown-item:hover {
    background: rgba(122, 249, 196, 0.1);
    color: var(--nucleo-blue);
}

.navbar .dropdown-item.text-danger:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

#sidebarToggle {
    display: none;
    border: none;
    background: none;
    font-size: 1.5rem;
    color: var(--nucleo-blue);
    padding: 0.5rem;
}

#sidebarToggle:hover {
    color: var(--nucleo-teal);
}

/* ============================================
   BUTTONS - Mint Primary, Blue Secondary
   ============================================ */
.btn-primary {
    background-color: var(--nucleo-mint);
    border-color: var(--nucleo-mint);
    color: var(--nucleo-blue);
    font-weight: 600;
    padding: 0.625rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--nucleo-teal);
    border-color: var(--nucleo-teal);
    color: var(--nucleo-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 216, 163, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--nucleo-blue);
    color: var(--nucleo-blue);
    font-weight: 600;
    padding: 0.625rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: var(--nucleo-blue);
    border-color: var(--nucleo-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(62, 59, 109, 0.2);
}

.btn-outline-primary {
    border: 2px solid var(--nucleo-mint);
    color: var(--nucleo-blue);
    background: transparent;
    font-weight: 500;
}

.btn-outline-primary:hover {
    background: var(--nucleo-mint);
    border-color: var(--nucleo-mint);
    color: var(--nucleo-blue);
}

.btn-success {
    background-color: var(--nucleo-teal);
    border-color: var(--nucleo-teal);
    color: var(--nucleo-blue);
    font-weight: 600;
}

.btn-success:hover {
    background-color: var(--nucleo-mint);
    border-color: var(--nucleo-mint);
    color: var(--nucleo-blue);
}

.btn-sm {
    padding: 0.375rem 1rem;
    font-size: 0.875rem;
}

/* ============================================
   CARDS - White with Rounded Corners
   ============================================ */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    background: var(--surface);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.card-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
    border-radius: 12px 12px 0 0 !important;
    font-weight: 600;
    color: var(--nucleo-blue);
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    border-radius: 0 0 12px 12px !important;
}

/* Stat Widget Cards */
.card.border-start {
    border-left-width: 4px !important;
    border-left-style: solid !important;
}

.card.border-start.border-danger {
    border-left-color: #EF4444 !important;
}

.card.border-start.border-warning {
    border-left-color: #F59E0B !important;
}

.card.border-start.border-info {
    border-left-color: var(--nucleo-teal) !important;
}

.card.border-start.border-primary {
    border-left-color: var(--nucleo-mint) !important;
}

/* ============================================
   INPUTS - Clean with Teal Focus
   ============================================ */
.form-control,
.form-select {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.625rem 1rem;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    background: var(--surface);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--nucleo-teal);
    box-shadow: 0 0 0 3px rgba(74, 216, 163, 0.1);
    outline: none;
}

.form-label {
    color: var(--nucleo-blue);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.input-group-text {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    color: var(--nucleo-blue);
    border-radius: 8px 0 0 8px;
}

.input-group .form-control {
    border-left: none;
    border-radius: 0 8px 8px 0;
}

/* ============================================
   TABLES - Blue Headers, Clean Zebra
   ============================================ */
.table {
    background: var(--surface);
    border-radius: 12px;
    overflow: hidden;
}

.table thead {
    background: var(--nucleo-blue);
    color: white;
}

.table thead th {
    border: none;
    padding: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s ease;
}

.table tbody tr:hover {
    background: var(--bg-light);
}

.table tbody tr:nth-child(even) {
    background: rgba(248, 250, 252, 0.5);
}

.table tbody tr:nth-child(even):hover {
    background: var(--bg-light);
}

.table tbody td {
    padding: 1rem;
    border: none;
    color: var(--text-dark);
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background: rgba(122, 249, 196, 0.1);
}

/* ============================================
   PROGRESS BARS
   ============================================ */
.progress {
    height: 10px;
    border-radius: 10px;
    background: var(--bg-light);
    overflow: hidden;
}

.progress-bar {
    border-radius: 10px;
    transition: width 0.6s ease;
}

.progress-bar.bg-success {
    background-color: var(--nucleo-teal) !important;
}

.progress-bar.bg-warning {
    background-color: #F59E0B !important;
}

.progress-bar.bg-danger {
    background-color: #EF4444 !important;
}

.progress-bar.bg-info {
    background-color: var(--nucleo-teal) !important;
}

/* ============================================
   BADGES
   ============================================ */
.badge {
    font-weight: 600;
    padding: 0.4em 0.8em;
    border-radius: 6px;
    font-size: 0.75rem;
    letter-spacing: 0.3px;
}

.badge.bg-primary {
    background-color: var(--nucleo-mint) !important;
    color: var(--nucleo-blue) !important;
}

.badge.bg-success {
    background-color: var(--nucleo-teal) !important;
    color: var(--nucleo-blue) !important;
}

.badge.bg-info {
    background-color: var(--nucleo-teal) !important;
    color: var(--nucleo-blue) !important;
}

.badge.bg-warning {
    background-color: #F59E0B !important;
    color: white !important;
}

.badge.bg-danger {
    background-color: #EF4444 !important;
    color: white !important;
}

.badge.bg-secondary {
    background-color: var(--text-muted) !important;
    color: white !important;
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    border: none;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    border-left: 4px solid;
}

.alert-success {
    background: rgba(74, 216, 163, 0.1);
    color: var(--nucleo-blue);
    border-left-color: var(--nucleo-teal);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #991B1B;
    border-left-color: #EF4444;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #92400E;
    border-left-color: #F59E0B;
}

.alert-info {
    background: rgba(74, 216, 163, 0.1);
    color: var(--nucleo-blue);
    border-left-color: var(--nucleo-teal);
}

/* ============================================
   STAT WIDGETS
   ============================================ */
.stat-widget {
    background: var(--surface);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    height: 100%;
}

.stat-widget:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.stat-widget-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.stat-widget-icon.mint {
    background: rgba(122, 249, 196, 0.15);
    color: var(--nucleo-mint);
}

.stat-widget-icon.teal {
    background: rgba(74, 216, 163, 0.15);
    color: var(--nucleo-teal);
}

.stat-widget-icon.blue {
    background: rgba(62, 59, 109, 0.1);
    color: var(--nucleo-blue);
}

.stat-widget-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--nucleo-blue);
    margin: 0.5rem 0;
}

.stat-widget-label {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   KANBAN / PIPELINE STYLE
   ============================================ */
.kanban-board {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 1rem 0;
}

.kanban-column {
    min-width: 300px;
    background: var(--surface);
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.kanban-column-header {
    color: var(--nucleo-blue);
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kanban-item {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    cursor: move;
}

.kanban-item:hover {
    border-color: var(--nucleo-mint);
    box-shadow: 0 4px 12px rgba(122, 249, 196, 0.2);
    transform: translateY(-2px);
}

.kanban-item-title {
    font-weight: 600;
    color: var(--nucleo-blue);
    margin-bottom: 0.5rem;
}

.kanban-item-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

/* ============================================
   UTILITIES
   ============================================ */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bg-mint {
    background-color: var(--nucleo-mint) !important;
}

.bg-teal {
    background-color: var(--nucleo-teal) !important;
}

.text-nucleo-blue {
    color: var(--nucleo-blue) !important;
}

.text-nucleo-mint {
    color: var(--nucleo-mint) !important;
}

.border-nucleo {
    border-color: var(--nucleo-blue) !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    #sidebarToggle {
        display: block;
    }
    
    :root {
        --sidebar-width: 260px;
    }
}

/* ============================================
   LOADING SPINNER
   ============================================ */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

.spinner-border {
    border-color: var(--nucleo-mint);
    border-right-color: transparent;
}

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(122, 249, 196, 0.3);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(122, 249, 196, 0.5);
}

/* ============================================
   DASHBOARD SPECIFIC
   ============================================ */
.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.storage-progress-card,
.box-progress-card {
    background: var(--surface);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.progress-large {
    height: 16px;
    border-radius: 10px;
    background: var(--bg-light);
    overflow: hidden;
}

.progress-large .progress-bar {
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nucleo-blue);
}

/* ============================================
   LIST GROUPS
   ============================================ */
.list-group-item {
    border: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
    background: var(--surface);
    transition: all 0.2s ease;
}

.list-group-item:hover {
    background: var(--bg-light);
    border-color: var(--nucleo-mint);
}

.list-group-item:first-child {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.list-group-item:last-child {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* ============================================
   MODALS
   ============================================ */
.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
}

.modal-header .modal-title {
    color: var(--nucleo-blue);
    font-weight: 600;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
}

/* ============================================
   DROPDOWNS
   ============================================ */
.dropdown-menu {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: 6px;
    padding: 0.625rem 1rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(122, 249, 196, 0.1);
    color: var(--nucleo-blue);
}

.dropdown-item.active {
    background: var(--nucleo-mint);
    color: var(--nucleo-blue);
    font-weight: 600;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination .page-link {
    color: var(--nucleo-blue);
    border-color: var(--border-color);
    padding: 0.5rem 0.75rem;
}

.pagination .page-link:hover {
    background: var(--nucleo-mint);
    border-color: var(--nucleo-mint);
    color: var(--nucleo-blue);
}

.pagination .page-item.active .page-link {
    background: var(--nucleo-mint);
    border-color: var(--nucleo-mint);
    color: var(--nucleo-blue);
    font-weight: 600;
}

/* ============================================
   FOOTER CREDIT
   ============================================ */
footer {
    background: var(--surface) !important;
    border-top: 1px solid var(--border-color) !important;
}

footer a {
    color: var(--nucleo-blue);
    font-weight: 500;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--nucleo-teal);
}

/* ============================================
   ICON STYLING
   ============================================ */
/* Base Nucleo Icon - Mint Color */
.nucleo-icon {
    color: var(--nucleo-mint);
    vertical-align: middle;
    margin-right: 10px;
    transition: all 0.3s ease;
}

/* Sidebar Icons - Mint Color */
.sidebar-nav .nav-link i.bi {
    color: var(--nucleo-mint);
}

.sidebar-nav .nav-link:hover i.bi,
.sidebar-nav .nav-link.active i.bi {
    color: var(--nucleo-teal);
    transform: scale(1.1);
}

/* Action Buttons Icons - Blue Color */
.icon-action {
    color: var(--nucleo-blue);
    vertical-align: middle;
    margin-right: 5px;
}

.btn-primary .bi,
.btn-secondary .bi {
    margin-right: 5px;
}

.btn-primary .bi {
    color: var(--nucleo-blue);
}

.btn-secondary .bi {
    color: var(--nucleo-blue);
}

.btn-secondary:hover .bi {
    color: white;
}

/* Edit/View Action Icons */
.icon-edit,
.icon-view {
    color: var(--nucleo-blue);
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.icon-edit:hover,
.icon-view:hover {
    color: var(--nucleo-teal);
    transform: scale(1.15);
}

/* Delete/Alert Icons - Soft Red with Opacity */
.icon-delete,
.icon-alert,
.icon-danger {
    color: rgba(220, 53, 69, 0.8);
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.icon-delete:hover,
.icon-alert:hover,
.icon-danger:hover {
    color: rgba(220, 53, 69, 1);
    transform: scale(1.15);
}

.btn-danger .bi,
.alert-danger .bi {
    color: rgba(220, 53, 69, 0.9);
}

/* Success/Check Icons - Teal Color */
.icon-success,
.icon-check {
    color: var(--nucleo-teal);
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.icon-success:hover,
.icon-check:hover {
    color: var(--nucleo-mint);
    transform: scale(1.15);
}

.btn-success .bi,
.alert-success .bi {
    color: var(--nucleo-teal);
}

/* QR Code Icon */
.icon-qr {
    color: var(--nucleo-blue);
    font-size: 1.5rem;
}

/* Digital Signature Icon */
.icon-signature {
    color: var(--nucleo-teal);
    font-size: 1.2rem;
}

/* Time Stamp Icon */
.icon-timestamp {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Icon in Cards */
.card-header .bi {
    color: var(--nucleo-blue);
    margin-right: 0.5rem;
}

/* Icon in Tables */
.table .bi {
    vertical-align: middle;
}

.table .btn-sm .bi {
    margin-right: 3px;
}

/* Icon Sizes */
.icon-sm {
    font-size: 0.875rem;
}

.icon-md {
    font-size: 1.125rem;
}

.icon-lg {
    font-size: 1.5rem;
}

.icon-xl {
    font-size: 2rem;
}
