/* ART Gallery - Professional Business Design */
:root {
    --primary: #1e3a5f;
    --primary-light: #2d5a8a;
    --accent: #c9a227;
    --accent-light: #e6c04a;
    --dark: #0f172a;
    --light: #f8fafc;
    --gray: #64748b;
    --success: #059669;
    --danger: #dc2626;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; color: var(--dark); background: var(--light); line-height: 1.6; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Navbar */
.navbar { background: var(--primary); color: white; padding: 0.9rem 0; box-shadow: var(--shadow); position: sticky; top: 0; z-index: 1000; }
.navbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.navbar-brand { font-size: 1.4rem; font-weight: 700; color: white !important; }
.navbar-nav { display: flex; gap: 1.5rem; align-items: center; list-style: none; }
.navbar-nav a { color: rgba(255,255,255,0.9); font-weight: 500; }
.navbar-nav a:hover { color: var(--accent-light); }
.btn { display: inline-block; padding: 0.5rem 1.2rem; border-radius: 6px; font-weight: 600; cursor: pointer; border: none; transition: all 0.2s; }
.btn-primary { background: var(--accent); color: var(--dark); }
.btn-primary:hover { background: var(--accent-light); transform: translateY(-1px); }
.btn-outline { background: transparent; border: 2px solid white; color: white; }
.btn-outline:hover { background: white; color: var(--primary); }
.btn-dark { background: var(--dark); color: white; }
.btn-danger { background: var(--danger); color: white; }

/* Hero / Landing */
.hero { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, #1e3a5f 100%); color: white; padding: 5rem 0; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); opacity: 0.5; }
.hero h1 { font-size: 2.8rem; margin-bottom: 1rem; text-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.hero p { font-size: 1.2rem; opacity: 0.95; margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero .btn { padding: 0.8rem 2rem; font-size: 1rem; }
.features { padding: 4rem 0; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; margin-top: 2rem; }
.feature-card { background: white; padding: 2rem; border-radius: 12px; box-shadow: var(--shadow); text-align: center; transition: transform 0.2s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-card .icon { width: 60px; height: 60px; background: linear-gradient(135deg, var(--primary), var(--accent)); border-radius: 12px; margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: white; }
.feature-card h3 { color: var(--primary); margin-bottom: 0.5rem; }
.feature-card p { color: var(--gray); font-size: 0.95rem; }

/* Forms */
.auth-container { max-width: 450px; margin: 3rem auto; padding: 2rem; background: white; border-radius: 12px; box-shadow: var(--shadow-lg); }
.auth-container h2 { text-align: center; margin-bottom: 1.5rem; color: var(--primary); }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: var(--dark); }
.form-control { width: 100%; padding: 0.6rem 0.8rem; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 1rem; }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(30,58,95,0.2); }
.form-control.is-invalid { border-color: var(--danger); }
.invalid-feedback { color: var(--danger); font-size: 0.875rem; margin-top: 0.25rem; }
.btn-block { width: 100%; padding: 0.75rem; margin-top: 0.5rem; }
.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; }
.alert { padding: 1rem; border-radius: 6px; margin-bottom: 1rem; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.alert-error, .alert-danger { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.alert-info { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }

/* Cards */
.card { background: white; border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.card-body { padding: 1.5rem; }
.card-title { font-size: 1.2rem; margin-bottom: 0.5rem; color: var(--dark); }
.card-text { color: var(--gray); font-size: 0.95rem; }
.badge { display: inline-block; padding: 0.25rem 0.6rem; font-size: 0.75rem; font-weight: 600; border-radius: 4px; }
.badge-success { background: #d1fae5; color: #065f46; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-warning { background: #fef3c7; color: #92400e; }

/* Artwork grid */
.artwork-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.artwork-card { background: white; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); transition: transform 0.2s; }
.artwork-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.artwork-card img { width: 100%; height: 220px; object-fit: cover; }
.artwork-card .card-body { padding: 1rem; }
.artwork-card .price { font-weight: 700; color: var(--primary); font-size: 1.1rem; }
.artwork-card .artist { font-size: 0.9rem; color: var(--gray); }

/* Footer */
.footer { background: var(--dark); color: rgba(255,255,255,0.8); padding: 3rem 0 1.5rem; margin-top: 4rem; }
.footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.footer h4 { color: white; margin-bottom: 1rem; font-size: 1rem; }
.footer a { color: rgba(255,255,255,0.7); }
.footer a:hover { color: var(--accent-light); }
.footer-bottom { text-align: center; padding-top: 1.5rem; margin-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.9rem; }

/* Page header */
.page-header { background: var(--primary); color: white; padding: 2rem 0; margin-bottom: 2rem; }
.page-header h1 { font-size: 1.8rem; }
.page-header p { opacity: 0.9; font-size: 1rem; margin-top: 0.5rem; }

/* Table */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 0.75rem; text-align: left; border-bottom: 1px solid #e2e8f0; }
.table th { background: #f1f5f9; font-weight: 600; color: var(--dark); }
.table tr:hover { background: #f8fafc; }
.table-responsive { overflow-x: auto; }

/* Pagination */
.pagination { display: flex; gap: 0.5rem; justify-content: center; margin: 2rem 0; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 0.5rem 1rem; border: 1px solid #cbd5e1; border-radius: 6px; }
.pagination a:hover { background: var(--primary); color: white; border-color: var(--primary); }
.pagination .current { background: var(--primary); color: white; border-color: var(--primary); }
.pagination .disabled { opacity: 0.5; pointer-events: none; }

/* Cart */
.cart-item { display: flex; gap: 1rem; padding: 1rem; border-bottom: 1px solid #e2e8f0; align-items: center; }
.cart-item img { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; }
.cart-summary { background: #f8fafc; padding: 1.5rem; border-radius: 8px; }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--gray); }
.empty-state .btn { margin-top: 1rem; }

/* Profile */
.profile-header { display: flex; gap: 2rem; align-items: center; margin-bottom: 2rem; flex-wrap: wrap; }
.profile-avatar { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 4px solid var(--accent); }
.profile-info h2 { margin-bottom: 0.5rem; }
.profile-info .text-muted { color: var(--gray); font-size: 0.95rem; }

/* Filter bar */
.filter-bar { background: white; padding: 1rem; border-radius: 8px; margin-bottom: 1.5rem; box-shadow: var(--shadow); display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.filter-bar select, .filter-bar input { padding: 0.5rem 0.8rem; border: 1px solid #cbd5e1; border-radius: 6px; }
