/* Timeline styles */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #dee2e6;
}

.timeline-item {
    position: relative;
    padding-right: 40px;
    margin-bottom: 30px;
}

.timeline-marker {
    position: absolute;
    right: 10px;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 3px;
}

.timeline-content {
    background: white;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.timeline-content h6 {
    margin-bottom: 5px;
    color: #333;
}
/* Animation classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate__animated {
    animation-duration: 0.5s;
    animation-fill-mode: both;
}

.animate__fadeInUp {
    animation-name: fadeInUp;
}

/* Print styles */
@media print {
    @page {
        size: A4;
        margin: 20mm;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .movement-header {
        background: none !important;
        color: black !important;
        box-shadow: none !important;
    }
    
    .action-btns, .sidebar, .navbar {
        display: none !important;
    }
    
    .info-card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
    
    .summary-box {
        border: 2px solid #333 !important;
    }
}
/* Receipts Specific Styles */
.card-statistic {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.card-statistic:hover {
    transform: translateY(-5px);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bg-gradient-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #f7971e 0%, #ffd200 100%);
}

.bg-gradient-danger {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
}

.bg-gradient-info {
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
}

/* Table Styles */
.table-hover tbody tr:hover {
    background-color: #f8f9fa;
}

.table th {
    font-weight: 600;
    background-color: #f8f9fa;
}

/* Badge Styles */
.badge {
    font-size: 0.85em;
    padding: 0.4em 0.8em;
    font-weight: 500;
}

/* Progress Bar */
.progress {
    background-color: #e9ecef;
    border-radius: 4px;
}

.progress-bar {
    border-radius: 4px;
}

/* Signature Box */
.signature-box {
    border: 2px dashed #dee2e6;
    padding: 20px;
    border-radius: 8px;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .card {
        border: none !important;
        box-shadow: none !important;
    }
    
    .table-bordered {
        border: 1px solid #dee2e6 !important;
    }
    
    .table-bordered th,
    .table-bordered td {
        border: 1px solid #dee2e6 !important;
    }
}

/* Form Validation */
.is-invalid {
    border-color: #dc3545 !important;
}

.is-valid {
    border-color: #198754 !important;
}

/* Loading Spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Toast Customization */
.toast {
    border-radius: 8px;
}

/* Modal Customization */
.modal-content {
    border-radius: 12px;
    border: none;
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
}
/* Stocktake Specific Styles */

/* Status Badges */
.badge-status-draft {
    background-color: #6c757d;
    color: white;
}

.badge-status-counting {
    background-color: #0dcaf0;
    color: white;
}

.badge-status-review {
    background-color: #ffc107;
    color: black;
}

.badge-status-adjusted {
    background-color: #0d6efd;
    color: white;
}

.badge-status-completed {
    background-color: #198754;
    color: white;
}

/* Counting Interface */
.counted-input {
    text-align: center;
}

.save-count-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Variance Colors */
.text-variance-positive {
    color: #28a745 !important;
}

.text-variance-negative {
    color: #dc3545 !important;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dee2e6;
}

.timeline-item {
    position: relative;
    padding-bottom: 20px;
}

.timeline-marker {
    position: absolute;
    left: -30px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px #dee2e6;
    z-index: 2;
}

.timeline-content {
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #dee2e6;
}

/* Progress Bars */
.progress-thin {
    height: 8px;
}

/* Card Hover Effects */
.card-hover:hover {
    transform: translateY(-2px);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Avatar Icons */
.avatar {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.avatar-lg {
    width: 60px;
    height: 60px;
}

.avatar-sm {
    width: 40px;
    height: 40px;
}

/* Table Stripes */
.table-striped-custom tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Quick Count Form */
#barcodeInput:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    border-color: #86b7fe;
}

/* Responsive Tables */
.table-responsive-custom {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    .table-responsive-custom {
        font-size: 0.9rem;
    }
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 0.2em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border .75s linear infinite;
}

@keyframes spinner-border {
    to { transform: rotate(360deg); }
}

/* Alert Variations */
.alert-stocktake-info {
    border-left: 4px solid #0dcaf0;
}

.alert-stocktake-warning {
    border-left: 4px solid #ffc107;
}

.alert-stocktake-success {
    border-left: 4px solid #198754;
}

.alert-stocktake-danger {
    border-left: 4px solid #dc3545;
}