/* ============================================
   CORE1SYS - INVENTORY MANAGEMENT SYSTEM
   CSS Stylesheet - Clean & Minimal
   ============================================ */

:root {
    --sidebar-bg: #1e2532;
    --active-blue: #2563eb;
    --bg-light: #f3f4f6;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --text-light: #9ca3af;
    --card-gold: #fbbf24;
    --status-active: #10b981;
    --status-dropped: #ef4444;
    --status-completed: #6366f1;
    --status-pending: #f59e0b;
    --border-color: #e5e7eb;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html, body {
    height: 100%;
}

body {
    display: flex;
    background-color: var(--bg-light);
    min-height: 100vh;
}

/* ============================================
   SIDEBAR NAVIGATION
   ============================================ */
.sidebar {
    width: 260px;
    background-color: var(--sidebar-bg);
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    flex-shrink: 0;
    height: 100vh;
    position: sticky;
    top: 0;
    overflow-y: auto;
    animation: fadeIn 0.3s ease-out;
}

.brand {
    padding: 0 20px 30px;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.brand i {
    margin-right: 8px;
}

.menu-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    padding: 10px 25px;
    letter-spacing: 1px;
    font-weight: 600;
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.4);
}

.menu-item {
    padding: 12px 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: 0.2s;
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--text-light);
}

.menu-item:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.05);
}

.menu-item.active {
    background-color: var(--active-blue);
    color: white;
    border-right: 4px solid var(--card-gold);
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */
.main-content {
    flex-grow: 1;
    padding: 30px;
    overflow-y: auto;
    animation: fadeIn 0.3s ease-out;
}

.breadcrumbs {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-profile {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.user-profile:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--active-blue), #3b82f6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.user-profile:hover .user-avatar {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.profile-name {
    margin-left: 12px;
    font-size: 0.8rem;
    color: var(--text-dark);
    font-weight: 500;
    text-shadow: none;
    letter-spacing: 0.025em;
    opacity: 0.9;
}

.profile-dropdown {
    position: absolute;
    top: 55px;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    width: 180px;
    display: none;
    z-index: 100;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
}

.profile-dropdown.show {
    display: block;
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    padding: 12px 16px;
    font-size: 0.9rem;
    color: var(--text-dark);
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    color: var(--active-blue);
    padding-left: 20px;
}

/* ============================================
   LOGIN / AUTH PAGES
   ============================================ */
body.login-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-color: var(--bg-light);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Inter', sans-serif;
}

.login-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    max-width: 400px;
    width: 100%;
    padding: 20px;
}

.login-brand {
    display: none;
}

.login-container {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 400px;
    border: 1px solid var(--border-color);
}

.login-header {
    display: none;
}

.form-group {
    text-align: left;
    margin-bottom: 20px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus {
    outline: none;
    border-color: var(--active-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input::placeholder {
    color: #9ca3af;
}

/* password toggle styling */
.password-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.password-wrapper input {
    width: 100%;
    padding-right: 3rem;
    box-sizing: border-box;
}

.toggle-password {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6b7280;
    z-index: 2;
    font-size: 1rem;
    background: transparent;
    border: none;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.toggle-password:hover {
    color: var(--active-blue);
    background: rgba(37, 99, 235, 0.1);
}

/* ============================================
   PASSWORD REQUIREMENTS & STRENGTH
   ============================================ */
.password-requirements {
    margin-top: 12px;
    padding: 12px;
    background: #f9f9f9;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    display: block;
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: #6b7280;
    transition: all 0.2s ease;
}

.requirement-item:last-child {
    margin-bottom: 0;
}

.requirement-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    color: #9ca3af;
    font-weight: bold;
    flex-shrink: 0;
}

.requirement-item.met {
    color: var(--success);
}

.requirement-item.met .requirement-icon {
    color: var(--success);
}

.password-strength {
    margin-top: 12px;
    display: block;
}

.strength-bar {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 10px;
    transition: width 0.3s ease, background-color 0.3s ease;
    background: transparent;
}

.strength-fill.strength-weak {
    background: var(--danger);
}

.strength-fill.strength-medium {
    background: var(--warning);
}

.strength-fill.strength-strong {
    background: var(--success);
}

.strength-text {
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 500;
    display: block;
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--active-blue), #3b82f6);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.btn-login:active {
    transform: translateY(0);
}

.alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-error {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.alert-warning {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    border: 1px solid #f59e0b;
}

.login-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.login-footer p {
    margin: 5px 0;
    font-size: 0.85rem;
    color: var(--text-gray);
}

.login-footer code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.8rem;
}

.version {
    font-size: 0.75rem !important;
    opacity: 0.7;
}

/* ============================================
   PAGE HEADER & TITLE
   ============================================ */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
}

.page-subtitle {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-top: 5px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: var(--active-blue);
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background: #e5e7eb;
    color: var(--text-dark);
}

.btn-secondary:hover {
    background: #d1d5db;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #059669;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
}

.btn-outline:hover {
    background: var(--bg-light);
    border-color: var(--text-gray);
}

/* Action Buttons - Table Actions */
.action-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    white-space: nowrap;
}

.action-view {
    background: #dbeafe;
    color: #0284c7;
}

.action-view:hover {
    background: #0284c7;
    color: white;
    box-shadow: 0 4px 8px rgba(2, 132, 199, 0.3);
}

.action-inspect {
    background: #fed7aa;
    color: #d97706;
}

.action-inspect:hover {
    background: #d97706;
    color: white;
    box-shadow: 0 4px 8px rgba(217, 119, 6, 0.3);
}

.action-edit {
    background: #d1fae5;
    color: #059669;
}

.action-edit:hover {
    background: #059669;
    color: white;
    box-shadow: 0 4px 8px rgba(5, 150, 105, 0.3);
}

.action-delete {
    background: #fee2e2;
    color: #dc2626;
}

.action-delete:hover {
    background: #dc2626;
    color: white;
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.3);
}

/* Pagination Buttons */
.pagination-btn {
    padding: 8px 16px;
    background: #dbeafe;
    color: #0284c7;
    border: 1px solid #0284c7;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pagination-btn:hover {
    background: #0284c7;
    color: white;
    box-shadow: 0 4px 8px rgba(2, 132, 199, 0.3);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   LAYOUT COMPONENTS
   ============================================ */
.header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.header-section h1 {
    color: var(--text-dark);
    margin: 0;
}

.header-actions {
    display: flex;
    gap: 0.5rem;
}

.container {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.table-container {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--text-dark);
}

.data-table tr:hover {
    background: rgba(0,0,0,0.02);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.25rem;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

.filters-section {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filters-form {
    display: flex;
    gap: 1rem;
    align-items: end;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 500;
    color: #333;
}

.filter-group select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 150px;
}

.filter-actions {
    display: flex;
    gap: 0.5rem;
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--active-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control.error {
    border-color: var(--danger);
    background: #fef2f2;
}

.form-control.success {
    border-color: var(--success);
    background: #f0fdf4;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 18px;
    padding-right: 35px;
    color: var(--text-dark);
}

select.form-control:disabled {
    background-color: #f9fafb;
    color: var(--text-gray);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.required-field::after {
    content: " *";
    color: var(--danger);
}

/* ============================================
   SEARCH & FILTERS
   ============================================ */
.search-container {
    position: relative;
    margin-bottom: 20px;
}

.search-input {
    width: 100%;
    padding: 11px 20px 11px 45px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s ease;
    background: white;
    font-family: 'Inter', sans-serif;
}

.search-input:focus {
    border-color: var(--active-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
}

.filter-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

/* ============================================
   TABLES
   ============================================ */
.table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.table-header {
    padding: 20px;
    background: #f9fafb;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    color: var(--text-dark);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.data-table thead {
    background-color: #f9fafb;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    padding: 15px 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-gray);
}

.data-table td {
    padding: 15px 20px;
    font-size: 0.9rem;
    color: var(--text-dark);
    border-bottom: 1px solid #f3f4f6;
}

.data-table tbody tr:hover {
    background-color: #fcfcfd;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

table thead {
    background-color: #f9fafb;
    border-bottom: 1px solid var(--border-color);
}

.table-light thead th {
    background-color: #f9fafb;
    border-color: var(--border-color);
}

table th {
    padding: 15px 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-gray);
}

table td {
    padding: 15px 20px;
    font-size: 0.9rem;
    color: var(--text-dark);
    border-bottom: 1px solid #f3f4f6;
}

table tbody tr:hover {
    background-color: #fcfcfd;
}

table tbody tr:last-child td {
    border-bottom: none;
}

/* ============================================
   STATUS BADGES
   ============================================ */
.status-badge {
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.badge-active {
    background: #ecfdf5;
    color: #059669;
}

.badge-inactive {
    background: #f3f4f6;
    color: #6b7280;
}

.badge-pending {
    background: #fffbeb;
    color: #d97706;
}

.badge-completed {
    background: #eef2ff;
    color: #4f46e5;
}

.badge-danger {
    background: #fef2f2;
    color: #dc2626;
}

/* ============================================
   DASHBOARD STATS CARDS
   ============================================ */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: 0.3s;
}

.stat-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-gray);
    font-weight: 500;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
}

/* ============================================
   ACTION BUTTONS (Small)
   ============================================ */
.action-btn {
    padding: 8px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: var(--text-gray);
    cursor: pointer;
    transition: 0.2s;
    font-size: 0.9rem;
}

.action-btn:hover {
    background: #f3f4f6;
    color: var(--active-blue);
}

/* ============================================
   MODALS & DIALOGS
   ============================================ */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease-out;
    position: relative;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.25rem;
    color: var(--text-dark);
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-gray);
    cursor: pointer;
    transition: 0.2s;
}

.modal-close-btn:hover {
    color: var(--text-dark);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* ============================================
   ALERTS & NOTIFICATIONS
   ============================================ */
.alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInDown 0.3s ease-out;
    border-left: 4px solid transparent;
    font-size: 0.9rem;
}

.alert i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.alert-success {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    color: #065f46;
    border: 1px solid #6ee7b7;
    border-left-color: #10b981;
}

.alert-danger {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    color: #7f1d1d;
    border: 1px solid #fca5a5;
    border-left-color: #ef4444;
}

.alert-error {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    color: #7f1d1d;
    border: 1px solid #fca5a5;
    border-left-color: #ef4444;
}

.alert-warning {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    color: #78350f;
    border: 1px solid #fcd34d;
    border-left-color: #f59e0b;
}

.alert-info {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e3a8a;
    border: 1px solid #93c5fd;
    border-left-color: #2563eb;
}

.alert-danger {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.alert-warning {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fcd34d;
}

.alert-info {
    background: #dbeafe;
    color: #2563eb;
    border: 1px solid #93c5fd;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: static;
        flex-direction: row;
        padding: 10px;
    }

    .brand {
        padding: 0 10px;
        font-size: 0.9rem;
        border-bottom: none;
        margin-bottom: 0;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-content {
        padding: 20px;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }

    .filter-controls {
        flex-direction: column;
    }

    .filter-controls input,
    .filter-controls select {
        width: 100%;
    }

    .modal-content {
        width: 95%;
    }

    table {
        font-size: 0.8rem;
    }

    table td, table th {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .breadcrumbs {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .page-title {
        font-size: 1.25rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* PROFILE PAGE STYLES */
.profile-card .profile-avatar {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 4px solid var(--active-blue);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.2);
}

.profile-header {
    background: #f9fafb;
    color: var(--text-dark);
    padding: 30px;
    border-radius: 12px 12px 0 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.profile-avatar-large {
    width: 80px;
    height: 80px;
    background: var(--active-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 600;
    margin: 0 auto 15px;
    border: 2px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 2;
}

.profile-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 5px;
    text-shadow: none;
    color: var(--text-dark);
}

.profile-role {
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: 400;
    color: var(--text-gray);
}

.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.info-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.info-card h3 {
    color: var(--text-dark);
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-card h3 i {
    color: var(--active-blue);
    font-size: 1.3rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: var(--text-gray);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: rgba(16, 185, 129, 0.1);
    color: var(--status-active);
}

.status-inactive {
    background: rgba(239, 68, 68, 0.1);
    color: var(--status-dropped);
}

.quick-actions {
    margin-top: 30px;
    text-align: center;
}

.quick-actions h3 {
    color: var(--text-dark);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-profile {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--active-blue);
    color: white;
    border: 2px solid var(--active-blue);
}

.btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-light);
    border-color: var(--active-blue);
    color: var(--active-blue);
    transform: translateY(-2px);
}
/* Report Links */
.report-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.report-link {
    display: block;
    padding: 15px 20px;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-dark);
    transition: 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.report-link:hover {
    background: #f8f9fa;
    border-color: var(--active-blue);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
    transform: translateY(-2px);
    color: var(--text-dark);
}

.report-link i {
    margin-right: 10px;
    color: var(--active-blue);
    width: 20px;
}

.report-link small {
    color: var(--text-gray);
    font-size: 0.85rem;
    margin-top: 5px;
}

/* Cards */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    overflow: hidden;
    transition: 0.3s ease;
}

.card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.card-header {
    padding: 20px;
    background: #f9fafb;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
}

.card-body {
    padding: 20px;
}

/* Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-md-3, .col-md-4, .col-md-6 {
    padding: 0 15px;
    margin-bottom: 30px;
}

.col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
}

.col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

/* Tables */
.table {
    width: 100%;
    margin-bottom: 1rem;
    color: var(--text-dark);
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 0.75rem;
    vertical-align: top;
    border-top: 1px solid var(--border-color);
}

.table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid var(--border-color);
    background-color: #f8f9fa;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: var(--text-gray);
}

.table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.025);
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.075);
}

.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.375rem;
}

.badge-success {
    background-color: var(--success);
}

.badge-danger {
    background-color: var(--danger);
}

.badge-warning {
    background-color: var(--warning);
}

.badge-info {
    background-color: #0ea5e9;
}

.badge-primary {
    background-color: var(--active-blue);
    color: #fff;
}

.badge-secondary {
    background-color: #d1d5db;
    color: #000;
}

/* ============================================
   RECEIVING & INSPECTION STYLES
   ============================================ */

.receiving-steps {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.step-number {
    width: 30px;
    height: 30px;
    background: var(--active-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step-content h6 {
    margin: 0 0 5px 0;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.step-content p {
    margin: 0;
    color: var(--text-gray);
    font-size: 0.8rem;
}

.qc-checklist {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.qc-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.qc-item i {
    width: 16px;
    flex-shrink: 0;
}

/* Receiving Form Styles */
.receiving-form {
    background: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.receiving-section {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.receiving-section h5 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--text-dark);
    border-bottom: 2px solid var(--active-blue);
    padding-bottom: 10px;
}

.inspection-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    transition: 0.3s ease;
}

.inspection-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f3f4f6;
}

.item-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.inspection-form {
    background: #f9fafb;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.inspection-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.discrepancy-alert {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 4px;
    color: #92400e;
}

.photo-upload {
    margin-top: 10px;
}

.photo-upload label {
    display: inline-block;
    padding: 8px 16px;
    background: var(--active-blue);
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.photo-upload input[type="file"] {
    display: none;
}

.receiving-summary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.receiving-summary h4 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
}

.receiving-summary .summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.summary-item {
    text-align: center;
}

.summary-item .value {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
}

.summary-item .label {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Alerts */
.alert {
    position: relative;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.375rem;
}

.alert-info {
    color: #0c4a6e;
    background-color: #e0f2fe;
    border-color: #7dd3fc;
}

.alert-warning {
    color: #92400e;
    background-color: #fef3c7;
    border-color: #fcd34d;
}

.alert-danger {
    color: #991b1b;
    background-color: #fee2e2;
    border-color: #fca5a5;
}

.alert-success {
    color: #166534;
    background-color: #dcfce7;
    border-color: #86efac;
}

/* List Group */
.list-group {
    display: flex;
    flex-direction: column;
    padding-left: 0;
    margin-bottom: 0;
    border-radius: 0.375rem;
}

.list-group-item {
    position: relative;
    display: block;
    padding: 0.75rem 1.25rem;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.125);
    text-decoration: none;
    color: var(--text-dark);
    transition: 0.2s ease;
}

.list-group-item:first-child {
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
}

.list-group-item:last-child {
    border-bottom-right-radius: inherit;
    border-bottom-left-radius: inherit;
}

.list-group-item:hover {
    background-color: #f8f9fa;
    text-decoration: none;
    color: var(--text-dark);
}

.list-group-item-action {
    cursor: pointer;
}

.list-group-item-action:hover {
    background-color: #f8f9fa;
}

/* Text Color Utilities */
.text-primary { color: var(--active-blue) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-info { color: #0ea5e9 !important; }
.text-muted { color: var(--text-gray) !important; }
.text-dark { color: var(--text-dark) !important; }

/* Margin Utilities */
.mb-0 {
    margin-bottom: 0 !important;
}

.mb-1 {
    margin-bottom: 0.25rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

/* Padding Utilities */
.p-0 {
    padding: 0 !important;
}

.p-1 {
    padding: 0.25rem !important;
}

.p-2 {
    padding: 0.5rem !important;
}

.p-3 {
    padding: 1rem !important;
}

.p-4 {
    padding: 1.5rem !important;
}

.p-5 {
    padding: 3rem !important;
}

/* Flex Utilities */
.d-flex {
    display: flex !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.align-items-center {
    align-items: center !important;
}

/* Additional responsive fixes */
@media (max-width: 768px) {
    .col-md-3, .col-md-4, .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .table-responsive {
        border: none;
    }

    .card-body {
        padding: 15px;
    }

    .card-header {
        padding: 15px;
    }
}

