/* Main CSS for Tissue Culture Lab - Custom styles that extend Tailwind/DaisyUI */

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

/* Set global font */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Global border-radius override as specified in styleguide */
* {
    border-radius: 0 !important;
}

/* Custom CSS Classes from Styleguide - these extend the Tailwind classes */

/* Sidebar is now handled by DaisyUI classes - no custom styles needed */

/* Card Styles - extends DaisyUI card */
.dashboard-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    transition: all 0.2s ease;
}

.dashboard-card:hover {
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

/* Stat Card Styles */
.stat-card {
    position: relative;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.stat-card.stat-primary::before { background: #059669; }
.stat-card.stat-info::before { background: #3b82f6; }
.stat-card.stat-warning::before { background: #f59e0b; }
.stat-card.stat-error::before { background: #ef4444; }

.stat-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Table Styles */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
}

.data-table th {
    padding: 0.875rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}

.data-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.875rem;
    color: #334155;
}

.data-table tbody tr:hover {
    background: #f8fafc;
}

/* Status Badge Styles */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge::before {
    content: '';
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50% !important;
}

.status-growing { background: #ecfdf5; color: #059669; }
.status-growing::before { background: #059669; }

.status-monitoring { background: #fffbeb; color: #d97706; }
.status-monitoring::before { background: #f59e0b; }

.status-alert { background: #fef2f2; color: #dc2626; }
.status-alert::before { background: #ef4444; }

.status-online { background: #ecfdf5; color: #059669; }
.status-online::before { background: #059669; }

.status-maintenance { background: #f1f5f9; color: #64748b; }
.status-maintenance::before { background: #94a3b8; }

/* Alert Styles */
.alert-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-left: 4px solid;
    transition: all 0.2s ease;
}

.alert-item:hover {
    transform: translateX(2px);
}

.alert-item.alert-critical {
    background: #fef2f2;
    border-left-color: #ef4444;
}

.alert-item.alert-warning {
    background: #fffbeb;
    border-left-color: #f59e0b;
}

.alert-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Header Styles */
.header-search {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.header-search:focus {
    background: #ffffff;
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: -0.25rem;
    right: -0.25rem;
    width: 1.25rem;
    height: 1.25rem;
    background: #ef4444;
    color: #ffffff;
    font-size: 0.625rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* User Avatar is now handled by DaisyUI avatar component */