/* Modern Color Palette */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #a5b4fc;
    --primary-rgb: 99, 102, 241;
    --secondary-color: #64748b;
    --secondary-rgb: 100, 116, 139;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #06b6d4;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    
    /* Light theme colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --card-bg: rgba(255, 255, 255, 0.95);
    --navbar-bg: rgba(255, 255, 255, 0.95);
    --table-row-hover: rgba(99, 102, 241, 0.05);
    --input-bg: rgba(255, 255, 255, 0.8);
    --input-focus-bg: #ffffff;
}

/* Dark theme specific adjustments */
[data-bs-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --card-bg: rgba(30, 41, 59, 0.95);
    --navbar-bg: rgba(15, 23, 42, 0.95);
    --table-row-hover: rgba(99, 102, 241, 0.2);
    --input-bg: rgba(30, 41, 59, 0.8);
    --input-focus-bg: #1e293b;
    --border-color: #334155;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.3), 0 2px 4px -2px rgb(0 0 0 / 0.3);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.3), 0 4px 6px -4px rgb(0 0 0 / 0.3);
}

[data-bs-theme="dark"] .form-control::-webkit-input-placeholder,
[data-bs-theme="dark"] .form-select::-webkit-input-placeholder {
    color: #94a3b8;
}

[data-bs-theme="dark"] .form-control::-moz-placeholder,
[data-bs-theme="dark"] .form-select::-moz-placeholder {
    color: #94a3b8;
}

[data-bs-theme="dark"] .toast {
    background: rgba(15, 23, 42, 0.95);
    color: var(--text-primary);
}

[data-bs-theme="dark"] .modal-content {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

[data-bs-theme="dark"] .modal-header {
    border-bottom-color: var(--border-color);
}

[data-bs-theme="dark"] .modal-footer {
    border-top-color: var(--border-color);
}

[data-bs-theme="dark"] .dropdown-menu {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

[data-bs-theme="dark"] .dropdown-item {
    color: var(--text-primary);
}

[data-bs-theme="dark"] .dropdown-item:hover {
    background: var(--table-row-hover);
}

/* Base Styles */
body {
    background: var(--bg-primary);
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Navbar */
.navbar {
    background: var(--primary-color) !important;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    color: white !important;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    color: var(--accent-color) !important;
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: rgba(255,255,255,0.8) !important;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0 0.25rem;
    padding: 0.6rem 1.2rem !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background-color: rgba(255,255,255,0.1);
    color: white !important;
    transform: translateY(-1px);
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Theme Toggle Button */
.theme-toggle {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

/* Color Picker */
.color-picker-container {
    position: relative;
    display: inline-block;
}

.color-picker-toggle {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
}

.color-picker-toggle:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

.color-picker-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    min-width: 220px;
}

.color-picker-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.color-palette {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.4rem;
}

.color-option {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.color-option:hover {
    transform: scale(1.1);
    border-color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.color-option.active {
    border-color: white;
    box-shadow: 0 0 0 2px var(--card-bg), 0 0 0 4px currentColor;
}

/* Container */
.container {
    max-width: 1200px;
}

/* Cards */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

[data-bs-theme="dark"] .card:hover {
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.4), 0 8px 10px -6px rgb(0 0 0 / 0.4);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-bottom: none;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
    padding: 1.5rem;
}

.card-header h5 {
    margin: 0;
    font-weight: 600;
    font-size: 1.25rem;
}

.card-body {
    padding: 1.5rem;
}

/* Form Elements */
.form-control,
.form-select {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: var(--input-bg);
    color: var(--text-primary);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    background-color: var(--input-focus-bg);
}

/* Hide placeholder when the field is focused or contains value to avoid overlapping labels */
.form-control:focus::placeholder,
.form-control:not(:placeholder-shown)::placeholder,
textarea.form-control:focus::placeholder,
textarea.form-control:not(:placeholder-shown)::placeholder {
    opacity: 0;
    transition: opacity .12s ease;
}

/* Optional: ensure any small floating label/chip is above the placeholder */
.input-label-chip,
.floating-label {
    position: relative;
    z-index: 2;
    background: transparent; /* or set a matching background-color if needed */
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-text {
    color: var(--text-secondary);
}

/* Buttons */
.btn {
    font-weight: 600;
    border-radius: var(--radius-md);
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border: none;
    text-transform: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    transform: translateY(-1px);
}

.btn-outline-secondary {
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    background: transparent;
}

.btn-outline-secondary:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
}

.btn-outline-danger {
    border: 2px solid var(--danger-color);
    color: var(--danger-color);
    background: transparent;
}

.btn-outline-danger:hover {
    background: var(--danger-color);
    transform: translateY(-1px);
}

/* Table */
.table-responsive {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.table {
    margin: 0;
    background: var(--card-bg);
    color: var(--text-primary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
}

.table thead th {
    background: var(--primary-color);
    color: white;
    font-weight: 700;
    border: none;
    padding: 1.2rem 1rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-bottom: 2px solid var(--accent-color);
}

.table thead th:first-child {
    border-top-left-radius: 12px;
}

.table thead th:last-child {
    border-top-right-radius: 12px;
}

.table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
}

.table tbody tr:hover {
    background: var(--table-row-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border: none;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 12px;
}

.table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 12px;
}

/* Ürün resimleri için özel stiller */
.product-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-image:hover {
    transform: scale(1.1);
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.3);
    cursor: pointer;
    opacity: 0.9;
}

/* Barkod stili */
.barcode-text {
    font-weight: 500;
    background: var(--accent-bg);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    font-size: 0.85rem;
}

/* Tıklanabilir barkod stili */
.clickable-barcode {
    transition: all 0.2s ease;
}

.clickable-barcode:hover {
    background: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color) !important;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.3);
}

.clickable-barcode:active {
    transform: scale(0.98);
}

/* Ürün ID stili */
.product-id {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    background: rgba(var(--primary-rgb), 0.1);
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    color: var(--primary-color);
    font-size: 0.8rem;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
}

/* Aksiyon butonları */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
}

.action-buttons .btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-buttons .btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.action-buttons .btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.3);
}

.action-buttons .btn-outline-danger {
    border-color: #dc3545;
    color: #dc3545;
}

.action-buttons .btn-outline-danger:hover {
    background: #dc3545;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

/* Pagination: rounded green style like screenshots */
.pagination {
	display: flex;
	gap: .5rem;
	padding: 0;
	margin: 0;
	justify-content: center; /* ensure centered when container allows */
	align-items: center;
}

/* Base link look */
.pagination .page-link {
	color: #16a34a; /* green text */
	background-color: #fff;
	border: 1px solid rgba(0,0,0,0.06);
	border-radius: 8px;
	padding: .35rem .6rem;
	min-width: 36px;
	text-align: center;
	box-shadow: none;
	transition: all .12s ease-in-out;
}

/* Active page */
.pagination .page-item.active .page-link {
	background-color: #16a34a !important;
	color: #fff !important;
	border-color: #16a34a !important;
	box-shadow: none;
}

/* Disabled items */
.pagination .page-item.disabled .page-link {
	background-color: #f1f3f5;
	color: #6c757d;
	border-color: #e9ecef;
	cursor: default;
}

/* Hover state */
.pagination .page-link:hover {
	color: #0f8236;
	background-color: rgba(22,163,74,0.06);
	transform: translateY(-1px);
	text-decoration: none;
}

/* Smaller size adjustments */
.pagination-sm .page-link {
	padding: .28rem .5rem;
	font-size: .95rem;
	min-width: 34px;
	border-radius: 6px;
}

/* Optional: slightly larger first/last/prev/next visual (makes them appear as pill buttons) */
.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link,
.pagination .page-item:nth-child(2) .page-link,
.pagination .page-item:nth-last-child(2) .page-link {
	border-radius: 10px;
	padding-left: .6rem;
	padding-right: .6rem;
}

/* Make ellipsis consistent */
.pagination .page-item.disabled .page-link { pointer-events: none; }

/* Responsive: reduce gaps on narrow screens */
@media (max-width: 520px) {
	.pagination { gap: .3rem; }
	.pagination .page-link { padding: .25rem .45rem; min-width: 30px; }
}

/* Responsive table styles */
@media (max-width: 768px) {
    .table thead th {
        padding: 0.8rem 0.5rem;
        font-size: 0.75rem;
        letter-spacing: 0.05em;
    }
    
    .table tbody td {
        padding: 0.8rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .product-image {
        width: 40px;
        height: 40px;
    }
    
    .action-buttons {
        gap: 0.3rem;
    }
    
    .action-buttons .btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
        min-width: 35px;
    }
    
    .filter-buttons .btn {
        padding: 0.4rem 0.8rem;
        min-width: 80px;
        font-size: 0.8rem;
    }
    
    .barcode-text {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
    
    .product-id {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
}

/* Table container improvements */
.table-responsive {
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
    background: var(--card-bg);
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border: none;
    color: var(--text-primary);
}

.table img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.table img:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

/* Badges */
.badge {
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

.badge-expiry {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
}

.bg-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%) !important;
}

.bg-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #d97706 100%) !important;
}

.bg-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, #dc2626 100%) !important;
}

.bg-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
}

/* Status Colors */
.status-expired {
    color: var(--danger-color);
    font-weight: 700;
}

.status-warning {
    color: var(--warning-color);
    font-weight: 600;
}

.status-danger {
    color: var(--danger-color);
    font-weight: 600;
}

.status-safe {
    color: var(--success-color);
    font-weight: 600;
}

/* Pagination */
.pagination {
    justify-content: center;
    margin-top: 2rem;
}

.page-link {
    border: none;
    border-radius: var(--radius-sm);
    margin: 0 0.25rem;
    padding: 0.75rem 1rem;
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.page-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

.page-item.active .page-link {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

/* Notifications and Modals */
.notification-card {
    transition: all 0.3s ease;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    backdrop-filter: blur(10px);
}

.notification-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Toast Messages */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1055;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Loading and No Data States */
.loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.no-data {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.no-data i {
    color: var(--primary-light);
    margin-bottom: 1rem;
}

/* Image Preview */
#imagePreview {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

#imagePreview:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

/* Filter Section */
.filter-section {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

/* Filter Input Styles */
.filter-section .form-control {
    height: 42px;
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.filter-section .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.25);
}

.filter-section .form-label {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* Filter Buttons */
.filter-buttons {
    gap: 0.5rem;
}

.filter-buttons .btn {
    padding: 0.5rem 1rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    min-width: 100px;
    font-size: 0.9rem;
}

.filter-buttons .btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.filter-buttons .btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.25);
}

.filter-buttons .btn-outline-secondary {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    background: transparent;
}

.filter-buttons .btn-outline-secondary:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(var(--secondary-rgb), 0.25);
}

/* Result Info */
#resultInfo {
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--card-bg);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
}

/* Button Groups */
.btn-group-sm > .btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
    margin: 0 0.125rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.card,
.table tbody tr {
    animation: fadeInUp 0.3s ease-out;
}

.theme-toggle {
    animation: slideInRight 0.3s ease-out;
}

/* Page load animation */
body {
    animation: fadeIn 0.5s ease-out;
}

/* Smooth theme transition */
*, 
*::before, 
*::after {
    transition: background-color 0.3s ease, 
                border-color 0.3s ease, 
                color 0.3s ease,
                box-shadow 0.3s ease;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0.5rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .card-header {
        padding: 1rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .btn-group-sm > .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .table img {
        width: 40px;
        height: 40px;
    }
    
    .filter-section {
        padding: 1rem;
    }
    
    .filter-section .row > div {
        margin-bottom: 1rem;
    }
    
    .filter-section .col-md-4,
    .filter-section .col-md-1,
    .filter-section .col-md-2,
    .filter-section .col-md-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .filter-section .col-md-1 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .color-picker-dropdown {
        right: -20px;
        min-width: 200px;
    }
    
    .color-palette {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .color-option {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 576px) {
    .card-header h5 {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .filter-section {
        padding: 1rem;
    }
}
