/* ÉCO-GREEN Main Stylesheet */

/* Global Styles */
:root {
    --primary-color: #198754;
    --secondary-color: #6c757d;
    --accent-color: #ffc107;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-color);
    background-color: #f9f9f9;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* RTL Support */
body[dir="rtl"] .ms-auto {
    margin-right: auto !important;
    margin-left: 0 !important;
}

body[dir="rtl"] .me-auto {
    margin-left: auto !important;
    margin-right: 0 !important;
}

/* Header */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* Product Cards */
.product-card {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.product-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.product-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.product-category {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* Product Detail */
.product-image {
    max-height: 400px;
    object-fit: contain;
}

.quantity-selector {
    display: flex;
    align-items: center;
}

.quantity-input {
    width: 60px;
    text-align: center;
    margin: 0 10px;
}

/* Cart */
.cart-item-img {
    max-width: 100px;
    max-height: 100px;
    object-fit: contain;
}

.cart-summary {
    background-color: var(--light-color);
    padding: 20px;
    border-radius: 5px;
}

/* Forms */
.form-section {
    background-color: white;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.form-section h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* Dashboard */
.dashboard-card {
    text-align: center;
    padding: 20px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    height: 100%;
}

.dashboard-card:hover {
    transform: translateY(-5px);
}

.dashboard-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.dashboard-card .card-title {
    font-weight: bold;
    color: var(--dark-color);
}

.dashboard-card .card-text {
    font-weight: bold;
    color: var(--primary-color);
}

.admin-header {
    background-color: var(--primary-color);
    color: white;
}

.admin-sidebar {
    background-color: var(--dark-color);
    color: white;
    min-height: 100vh;
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1rem;
    margin: 0.2rem 0;
    border-radius: 0.25rem;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.admin-sidebar .nav-link i {
    width: 1.5rem;
    text-align: center;
    margin-right: 0.5rem;
}

.table-hover tbody tr:hover {
    background-color: rgba(25, 135, 84, 0.1);
}

/* Status Badges */
.status-pending {
    background-color: var(--accent-color);
}

.status-approved {
    background-color: var(--primary-color);
}

.status-rejected {
    background-color: #dc3545;
}

/* Footer */
footer {
    margin-top: auto;
}

footer a:hover {
    text-decoration: underline;
}

/* Alerts */
.alert {
    margin-bottom: 20px;
}

/* Responsiveness */
@media (max-width: 768px) {
    .product-card .card-img-top {
        height: 150px;
    }
    
    .cart-item-img {
        max-width: 80px;
        max-height: 80px;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

/* Modal */
.custom-modal {
    background-color: rgba(0, 0, 0, 0.5);
}

.custom-modal .modal-content {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.custom-modal .modal-header {
    background-color: var(--primary-color);
    color: white;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

/* Language Selector */
.language-selector img {
    width: 20px;
    height: 20px;
    margin-right: 5px;
} 