/* Professional Color Scheme with Gradients */
:root {
    /* Primary Colors - Modern Blue Gradient */
    --primary-color: #4f46e5;
    --primary-light: #6366f1;
    --primary-dark: #3730a3;
    --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #8b5cf6 100%);
    --primary-gradient-hover: linear-gradient(135deg, #3730a3 0%, #4f46e5 50%, #6366f1 100%);
    
    /* Secondary Colors - Sophisticated Gray */
    --secondary-color: #64748b;
    --secondary-light: #94a3b8;
    --secondary-dark: #475569;
    --secondary-gradient: linear-gradient(135deg, #64748b 0%, #94a3b8 100%);
    
    /* Success Colors - Emerald Green */
    --success-color: #059669;
    --success-light: #10b981;
    --success-dark: #047857;
    --success-gradient: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%);
    
    /* Warning Colors - Amber */
    --warning-color: #d97706;
    --warning-light: #f59e0b;
    --warning-dark: #b45309;
    --warning-gradient: linear-gradient(135deg, #d97706 0%, #f59e0b 50%, #fbbf24 100%);
    
    /* Danger Colors - Rose */
    --danger-color: #dc2626;
    --danger-light: #ef4444;
    --danger-dark: #b91c1c;
    --danger-gradient: linear-gradient(135deg, #dc2626 0%, #ef4444 50%, #f87171 100%);
    
    /* Info Colors - Sky Blue */
    --info-color: #0284c7;
    --info-light: #0ea5e9;
    --info-dark: #0369a1;
    --info-gradient: linear-gradient(135deg, #0284c7 0%, #0ea5e9 50%, #22d3ee 100%);
    
    /* Neutral Colors - Professional Gray Scale */
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --dark-color: #1e293b;
    
    /* Layout Variables */
    --sidebar-width: 250px;
    --sidebar-collapsed-width: 70px;
    --header-height: 60px;
    --border-radius: 0.75rem;
    --border-radius-sm: 0.5rem;
    --border-radius-lg: 1rem;
    
    /* Enhanced Shadows */
    --box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --box-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --box-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --box-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Dropdown Arrow Styles */
.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem;
}

.form-select:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%230d6efd' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
}

body {
    font-family: 'outfit', sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
    color: var(--gray-900);
    line-height: 1.6;
    min-height: 100vh;
}

/* Wrapper */
.wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, var(--white) 0%, var(--gray-50) 100%);
    color: var(--gray-900);
    transition: var(--transition);
    position: fixed;
    height: 100vh;
    z-index: 1000;
    box-shadow: var(--box-shadow-lg);
    border-right: 1px solid var(--gray-200);
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: var(--header-height);
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar.collapsed .sidebar-header h3 {
    display: none;
}

#sidebarCollapse {
    color: var(--gray-700);
    border: none;
    background: none;
    font-size: 1.25rem;
    padding: 0.25rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

#sidebarCollapse:hover {
    background-color: var(--gray-100);
    color: var(--gray-900);
}

.sidebar .components {
    padding: 1rem 0;
}

.sidebar .components li {
    margin-bottom: 0.25rem;
}

.sidebar .components li a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--gray-600);
    text-decoration: none;
    transition: var(--transition);
    border-radius: 0;
    border-left: 3px solid transparent;
}

.sidebar .components li a:hover {
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    color: var(--gray-900);
    border-left-color: var(--primary-color);
    transform: translateX(4px);
}

.sidebar .components li.active a {
    background: var(--primary-gradient);
    color: var(--white);
    border-left-color: var(--primary-color);
    box-shadow: var(--box-shadow-md);
    transform: translateX(4px);
}

.sidebar .components li a i {
    margin-right: 0.75rem;
    font-size: 1.1rem;
    min-width: 1.25rem;
    text-align: center;
}

.sidebar .components li a span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar.collapsed .components li a span {
    display: none;
}

.sidebar.collapsed .components li a {
    justify-content: center;
    padding: 0.75rem 0.5rem;
}

.sidebar.collapsed .components li a i {
    margin-right: 0;
}

/* Content Area */
#content {
    flex: 1;
    margin-left: var(--sidebar-width);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#content.expanded {
    margin-left: var(--sidebar-collapsed-width);
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-50) 100%);
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 0;
    box-shadow: var(--box-shadow-md);
    position: sticky;
    top: 0;
    z-index: 999;
    backdrop-filter: blur(10px);
}

.header h4 {
    margin: 0;
    color: var(--gray-800);
    font-weight: 600;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem;
    background: transparent;
}

/* Page Content */
.page-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.page-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cards */
.card {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-md);
    transition: var(--transition);
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-50) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card:hover {
    box-shadow: var(--box-shadow-xl);
    transform: translateY(-2px);
}

.card-header {
    background-color: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 1.25rem;
    font-weight: 600;
}

.card-body {
    padding: 1.25rem;
}

/* Stats Cards */
.card.bg-primary,
.card.bg-success,
.card.bg-warning,
.card.bg-info {
    border: none;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.card.bg-primary::before,
.card.bg-success::before,
.card.bg-warning::before,
.card.bg-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
}

.card.bg-primary {
    background: var(--primary-gradient) !important;
}

.card.bg-success {
    background: var(--success-gradient) !important;
}

.card.bg-warning {
    background: var(--warning-gradient) !important;
}

.card.bg-info {
    background: var(--info-gradient) !important;
}

/* Tables */
.table {
    margin-bottom: 0;
}

.table th {
    border-top: none;
    font-weight: 600;
    color: var(--gray-700);
    background-color: var(--gray-100);
}

.table td {
    vertical-align: middle;
}

/* Buttons */
.btn {
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: none;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition);
}

.btn:hover::before {
    left: 100%;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* Dropdown */
.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: var(--border-radius);
}

.dropdown-item {
    padding: 0.5rem 1rem;
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: var(--gray-100);
}

/* Forms */
.form-control,
.form-select {
    border-radius: var(--border-radius-sm);
    border: 2px solid var(--gray-200);
    transition: var(--transition);
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-50) 100%);
    backdrop-filter: blur(5px);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.15);
    background: var(--white);
    transform: translateY(-1px);
}

/* List Group */
.list-group-item {
    border: none;
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 0;
}

.list-group-item:last-child {
    border-bottom: none;
}

/* Responsive Design */
@media (max-width: 991px) {
    .sidebar {
        transform: translateX(-100%);
        position: fixed;
        width: var(--sidebar-width) !important;
        z-index: 1000;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .sidebar.collapsed {
        width: var(--sidebar-width) !important;
    }
    
    .sidebar.collapsed .sidebar-header h3,
    .sidebar.collapsed .components li a span {
        display: block !important;
    }
    
    .sidebar.collapsed .components li a {
        justify-content: flex-start !important;
        padding: 0.75rem 1rem !important;
    }
    
    .sidebar.collapsed .components li a i {
        margin-right: 0.75rem !important;
    }
    
    #content {
        margin-left: 0;
    }
    
    #content.expanded {
        margin-left: 0;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .header {
        padding: 0.75rem 0;
    }
    
    .sidebar-header {
        padding: 0.75rem;
    }
    
    .sidebar .components li a {
        padding: 0.5rem 0.75rem;
    }

    .header h4 {
        margin-left: 0;
    }
    .sidebar-header h3 {
        margin-left: 0;
    }
    
    /* Mobile menu button styles */
    #mobileMenuToggle {
        color: var(--gray-700);
        border: none;
        background: none;
        padding: 0.5rem;
        border-radius: var(--border-radius);
        transition: var(--transition);
    }
    
    #mobileMenuToggle:hover {
        background-color: var(--gray-100);
        color: var(--gray-900);
    }
    
    /* Overlay for mobile sidebar */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    
    .sidebar-overlay.show {
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 576px) {
    .main-content {
        padding: 0.5rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .header h4 {
        font-size: 1.1rem;
        margin-left: 0;
    }
    .sidebar-header h3 {
        margin-left: 0;
    }
}

/* Utility Classes */
.text-muted {
    color: var(--gray-600) !important;
}

.bg-gray-50 {
    background-color: var(--gray-50) !important;
}

.bg-gray-100 {
    background-color: var(--gray-100) !important;
}

/* Custom Scrollbar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: var(--gray-100);
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Tooltips for collapsed sidebar */
.sidebar.collapsed .components li a {
    position: relative;
}

.sidebar.collapsed .components li a:hover::after {
    content: attr(data-title);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--dark-color);
    color: var(--white);
    padding: 0.5rem;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    white-space: nowrap;
    z-index: 1001;
    margin-left: 0.5rem;
    box-shadow: var(--box-shadow);
}

/* Animation for sidebar toggle */
.sidebar,
#content {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus states for accessibility */
.sidebar .components li a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: -2px;
}

.btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

/* Print styles */
@media print {
    .sidebar,
    .header {
        display: none;
    }
    
    #content {
        margin-left: 0;
    }
    
    .main-content {
        padding: 0;
    }
}

/* Batch table styles */
.batch-row {
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.batch-row:hover {
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%) !important;
    /* transform: translateX(4px); */
}

/* Tab styles */
.nav-tabs .nav-link {
    color: var(--gray-600);
    border: none;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius-sm) var(--border-radius-sm) 0 0;
}

.nav-tabs .nav-link:hover {
    color: var(--primary-color);
    border-bottom-color: var(--gray-300);
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-50) 100%);
    font-weight: 600;
    box-shadow: var(--box-shadow-sm);
}

/* Checkbox styles */
.form-check-input:checked {
    background: var(--primary-gradient);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.15);
}

/* Table hover effects */
/* .table tbody tr:hover {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
    transform: scale(1.01);
    transition: var(--transition);
} */

/* Queue Page Styles */
.queue-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.queue-item-card {
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-50) 100%);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--box-shadow-md);
    transition: var(--transition);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.queue-item-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: var(--transition);
}

.queue-item-card:hover {
    box-shadow: var(--box-shadow-xl);
    transform: translateY(-4px);
}

.queue-item-card:hover::before {
    opacity: 1;
}

.queue-item-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.queue-item-header {
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 0.75rem;
}

.batch-identifier {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: var(--gray-800);
    font-size: 1.1rem;
}

.queue-item-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.supplier-info {
    font-weight: 600;
    color: var(--gray-700);
    font-size: 1rem;
}

.drug-details {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: var(--gray-700);
}

.drug-name {
    font-weight: 500;
}

.drug-separator {
    color: var(--gray-400);
    font-weight: 300;
}

.manufacturer {
    font-weight: 500;
    color: var(--primary-color);
}

.manufacturer-full {
    font-size: 0.9rem;
    color: var(--gray-600);
    font-style: italic;
}

.queue-item-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 0.75rem;
    border-top: 1px solid var(--gray-200);
}

.preview-btn {
    background: var(--primary-gradient);
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: var(--transition);
    border-radius: var(--border-radius-sm);
    position: relative;
    overflow: hidden;
}

.preview-btn:hover {
    background: var(--primary-gradient-hover);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-lg);
}

.preview-btn i {
    margin-right: 0.5rem;
}

/* Responsive queue layout */
@media (max-width: 768px) {
    .queue-item-card {
        padding: 1rem;
    }
    
    .queue-item-content {
        gap: 0.75rem;
    }
    
    .batch-identifier {
        font-size: 1rem;
    }
    
    .drug-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
         .queue-item-actions {
         justify-content: center;
     }
 }
 
 /* Activity Page Styles */
.activity-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-entry {
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-50) 100%);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--box-shadow-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    cursor: pointer;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.activity-entry::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: var(--transition);
}

.activity-entry:hover {
    box-shadow: var(--box-shadow-lg);
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
    transform: translateX(4px);
}

.activity-entry:hover::before {
    opacity: 1;
}
 
 .activity-content {
     display: flex;
     flex-direction: column;
     gap: 0.25rem;
 }
 
 .activity-event {
     font-weight: 600;
     color: var(--gray-800);
     font-size: 1rem;
     line-height: 1.4;
 }
 
 .activity-timestamp {
     font-size: 0.875rem;
     color: var(--gray-600);
     line-height: 1.3;
 }
 
 .activity-count {
     font-weight: 600;
     color: var(--gray-800);
     font-size: 1.1rem;
     min-width: 1.5rem;
     text-align: center;
 }
 
 /* Responsive activity layout */
 @media (max-width: 768px) {
     .activity-entry {
         padding: 0.875rem 1rem;
     }
     
     .activity-event {
         font-size: 0.95rem;
     }
     
     .activity-timestamp {
         font-size: 0.8rem;
     }
     
     .activity-count {
         font-size: 1rem;
     }
 }
 
 /* Preview Label Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1050;
    backdrop-filter: blur(8px);
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-50) 100%);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-xl);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    position: relative;
}

.modal-header h4 {
    margin: 0 0 0.25rem 0;
    color: var(--gray-800);
    font-weight: 600;
    font-size: 1.25rem;
}

.modal-subtitle {
    margin: 0;
    color: var(--gray-600);
    font-size: 0.875rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--gray-500);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background-color: var(--gray-100);
    color: var(--gray-700);
}

.modal-body {
    padding: 1.5rem;
}

.label-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.label-line {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.label-line:last-child {
    border-bottom: none;
}

.label-key {
    font-weight: 600;
    color: var(--gray-700);
    min-width: 80px;
    flex-shrink: 0;
}

.label-value {
    color: var(--gray-800);
    flex: 1;
    word-break: break-word;
}

/* Responsive modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .modal-header {
        padding: 1rem 1rem 0.75rem 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .label-line {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .label-key {
        min-width: auto;
    }
}
 
   /* Responsive preview label layout */
  @media (max-width: 768px) {
      .label-preview-container {
          padding: 1rem;
          margin: 0 1rem;
      }
      
      .label-preview {
          padding: 0.5rem;
      }
      
      .label-header h4 {
          font-size: 1.1rem;
      }
  }
  
  /* Settings Page Styles */
.test-api-btn {
    background: var(--primary-gradient);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.875rem 1.75rem;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.test-api-btn:hover {
    background: var(--primary-gradient-hover);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-lg);
    color: white;
}

.test-webhook-btn {
    background: var(--secondary-gradient);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.875rem 1.75rem;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.test-webhook-btn:hover {
    background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary-color) 100%);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-lg);
    color: white;
}
  
  /* Settings page responsive */
  @media (max-width: 768px) {
      .test-api-btn,
      .test-webhook-btn {
          width: 100%;
          margin-bottom: 0.5rem;
      }
  }

/* Enhanced Search Input Styles */
.input-group {
    border: 2px solid #dee2e6;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.input-group:focus-within {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
    transform: translateY(-1px);
}

.input-group .input-group-text {
    background: white !important;
    border: none !important;
    border-right: 2px solid #dee2e6 !important;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.input-group:focus-within .input-group-text {
    background: white !important;
    border-right-color: #0d6efd !important;
}

.input-group:focus-within .input-group-text i {
    color: #0d6efd !important;
    transform: scale(1.1);
    transition: all 0.3s ease;
}

.input-group .form-control {
    border: none !important;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
}

.input-group .form-control:focus {
    outline: none;
    box-shadow: none;
    background: white;
    border: none !important;
}

.input-group .form-control::placeholder {
    color: #6c757d;
    font-style: normal;
}

/* Remove any default Bootstrap focus styles that might interfere */
.input-group .form-control:focus,
.input-group .form-control:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

/* Ensure the input group maintains its border on focus */
.input-group:focus-within {
    border: 2px solid #0d6efd !important;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1) !important;
}
