/* Custom CSS for TokoKu E-Commerce */

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #ff6b35 0%, #e63946 100%);
    padding: 3rem 0;
}

.bg-gradient {
    background: linear-gradient(135deg, #ff6b35 0%, #e63946 100%);
}

/* Product Cards */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15) !important;
}

.product-card img {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-card .card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    min-height: 2.5rem;
}

/* Navbar */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.btn {
    border-radius: 8px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b35 0%, #e63946 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #e85e2f 0%, #d12f3c 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.4);
}

/* Cards */
.card {
    border-radius: 15px;
    border: none;
}

.card-header {
    border-radius: 15px 15px 0 0 !important;
    font-weight: 600;
}

/* Form Controls */
.form-control, .form-select {
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    padding: 0.6rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #ff6b35;
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
}

/* Badges */
.badge {
    padding: 0.5rem 0.8rem;
    font-weight: 500;
    border-radius: 20px;
}

/* Table */
.table-hover tbody tr {
    transition: background-color 0.2s ease;
}

.table-hover tbody tr:hover {
    background-color: #f0f0f0;
}

/* Image Thumbnail */
.img-thumbnail {
    border-radius: 8px;
    border: 2px solid #e0e0e0;
}

/* Alert */
.alert {
    border-radius: 10px;
    border: none;
}

/* Footer */
footer {
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card, .product-card {
    animation: fadeIn 0.5s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .product-card img {
        height: 150px;
    }
}

/* Dashboard Cards */
.bg-primary {
    background: linear-gradient(135deg, #ff6b35 0%, #e63946 100%) !important;
}

.bg-success {
    background: linear-gradient(135deg, #38b000 0%, #70c656 100%) !important;
}

.bg-info {
    background: linear-gradient(135deg, #f4a261 0%, #e76f51 100%) !important;
}

.bg-warning {
    background: linear-gradient(135deg, #ffd166 0%, #ffb703 100%) !important;
}

/* Input Group */
.input-group-text {
    background-color: #ff6b35;
    color: white;
    border: none;
}

/* Modal */
.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-header {
    border-radius: 15px 15px 0 0;
}

/* No Image Placeholder */
img[src*="no-image"] {
    background-color: #e0e0e0;
    padding: 20px;
}

/* Scrollbar Custom */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ff6b35;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e63946;
}

/* Login/Register Page */
.min-vh-100 {
    min-height: 100vh;
}

/* Hover Effects */
a {
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

/* Status Badges */
.badge.bg-warning {
    color: #000 !important;
}

/* Chart Container */
canvas {
    max-height: 400px;
}

/* List Group */
.list-group-item {
    border: 1px solid rgba(0,0,0,.125);
    border-radius: 8px !important;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

/* Shadow */
.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}