/*
 * Custom styles for the Persian warehouse management system.
 *
 * The interface uses a right‑to‑left (RTL) layout and a blue/green
 * colour palette. Animations are added for a modern look and feel.
 * You can extend or modify this file to tweak the visual design.
 */

body {
    font-family: 'Tahoma', sans-serif;
    direction: rtl;
    background-color: #f8f9fa;
}

.sidebar {
    background-color: #0d6efd; /* Bootstrap primary colour for consistency */
}

.sidebar .nav-link.active {
    background-color: #198754; /* Bootstrap success colour */
}

.card.animate {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.table thead th {
    background-color: #198754;
    color: #fff;
    vertical-align: middle;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-success {
    background-color: #198754;
    border-color: #198754;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-info {
    background-color: #0dcaf0;
    border-color: #0dcaf0;
    color: #000;
}

/* Form layout for add/edit pages */
.form-section {
    background-color: #fff;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0.25rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}