/* Main styles for the furniture production management system */

/* General styles */
body {
    background-color: #f8f9fa;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.footer {
    margin-top: auto;
}

/* Card styles */
.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: none;
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    padding: 0.75rem 1.25rem;
}

/* Timeline for order status history */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0.5rem;
    height: 100%;
    width: 2px;
    background-color: #e9ecef;
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.timeline-marker {
    position: absolute;
    top: 0.25rem;
    left: -1.5rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background-color: #0d6efd;
    border: 2px solid #fff;
}

.timeline-content {
    padding-bottom: 0.5rem;
}

.timeline-title {
    margin-bottom: 0.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Notification styles */
.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    transform: translate(25%, -25%);
}

.notification-dropdown {
    width: 320px;
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    border-left: 3px solid transparent;
    padding: 0.75rem 1rem;
    transition: background-color 0.2s;
}

.notification-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.notification-item.unread {
    border-left-color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.05);
}

.notification-item.order_status {
    border-left-color: #0d6efd;
}

.notification-item.low_stock {
    border-left-color: #ffc107;
}

.notification-item.system {
    border-left-color: #6c757d;
}

/* Tables */
.table > :not(:first-child) {
    border-top: none;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

/* Stock status indicators */
.stock-indicator {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.5rem;
}

.stock-indicator.in-stock {
    background-color: #198754;
}

.stock-indicator.low-stock {
    background-color: #ffc107;
}

.stock-indicator.out-of-stock {
    background-color: #dc3545;
}

/* Dashboard cards */
.stat-card {
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.stat-card .card-body {
    padding: 1.5rem;
}

.stat-card .stat-icon {
    font-size: 2.5rem;
    color: rgba(0, 0, 0, 0.15);
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: bold;
}

.stat-card .stat-label {
    color: #6c757d;
    font-size: 0.875rem;
}

/* Login page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
}

.login-form {
    max-width: 400px;
    width: 100%;
    padding: 2rem;
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

/* Material status in tables */
.material-status {
    display: inline-block;
    padding: 0.25em 0.6em;
    font-size: 0.75em;
    font-weight: bold;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
}

.material-status.in-stock {
    color: #198754;
    background-color: rgba(25, 135, 84, 0.1);
}

.material-status.low-stock {
    color: #ffc107;
    background-color: rgba(255, 193, 7, 0.1);
}

.material-status.out-of-stock {
    color: #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .stat-card .stat-value {
        font-size: 1.5rem;
    }

    .stat-card .stat-icon {
        font-size: 1.75rem;
    }

    .notification-dropdown {
        width: 290px;
    }
}

@media (max-width: 576px) {
    .timeline {
        padding-left: 1.5rem;
    }

    .card-body {
        padding: 1rem;
    }
}