/* d:\xampp\htdocs\kompak\style.css */
:root {
    --primary: #6c5ce7;
    --secondary: #a29bfe;
    --bg-light: #f9f9fb;
    --card-bg: #ffffff;
    --text-main: #2d3436;
    --text-muted: #636e72;
    --accent: #fab1a0;
    --success: #00b894;
    --danger: #d63031;
    --shadow: 0 4px 6px rgba(0,0,0,0.05);
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 40px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.logo i {
    margin-right: 10px;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.btn {
    padding: 10px 20px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.product-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.product-image {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    background-color: #eee;
}

.product-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-main);
}

.shop-name {
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 3px;
    font-weight: 600;
}

.owner-name {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.product-links {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f0f0f0;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1rem;
}

.icon-link:hover {
    background: var(--primary);
    color: white;
}

/* Dashboard Styles */
.dashboard-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
}

.sidebar {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    height: fit-content;
}

.sidebar-nav {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 15px;
}

.sidebar-nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    display: block;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s;
}

.sidebar-nav a.active, .sidebar-nav a:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.main-content {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.product-list-table {
    width: 100%;
    border-collapse: collapse;
}

.product-list-table th, .product-list-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.product-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

/* Pagination & Limit Styles */
.limit-selector {
    display: flex;
    background: #fff;
    padding: 4px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
    text-decoration: none;
    color: var(--text-muted);
    border-radius: 6px;
    font-weight: 600;
}

.btn-sm.active {
    background: var(--primary);
    color: white;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
    align-items: center;
}

.page-link {
    padding: 10px 18px;
    background: #fff;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.page-link:hover, .page-link.active {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .dashboard-container {
        grid-template-columns: 1fr;
    }
}
