/* Dashboard Styles */
.main-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.dashboard-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    min-width: 767px;
    max-width: 1200px;
    margin: 0 auto;
}

.card-header {
    background: var(--theme-header);
    color: white;
    padding: 30px;
    text-align: center;
}

.logo-header {
    margin-bottom: 10px;
}

.kgi-logo {
    height: 60px;
    width: auto;
    margin-bottom: 15px;
}

.logo-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin: 0;
}

.toolbar {
    background: #fac536;
    padding: 15px 30px;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.toolbar a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background-color 0.3s;
    font-weight: 500;
}

.toolbar a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    text-decoration: none;
    color: white;
}

.card-body {
    padding: 40px;
}

.welcome-section {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.welcome-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--theme-primary);
    margin-bottom: 15px;
}

.welcome-subtitle {
    color: var(--theme-muted);
    font-size: 1.1rem;
    margin-bottom: 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-tile {
    background: var(--theme-card-bg);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: inherit;
}

.product-tile.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.product-tile.disabled:hover {
    transform: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.product-image.placeholder {
    background: var(--theme-background);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.product-name {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--theme-primary);
}

.product-description {
    color: var(--theme-muted);
    margin-bottom: 15px;
    line-height: 1.5;
}

.product-stores {
    border-top: 1px solid #e5e7eb;
    padding-top: 15px;
}

.stores-label {
    font-weight: bold;
    color: var(--theme-text);
    margin-bottom: 8px;
}

.stores-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.store-tag {
    background: var(--theme-accent);
    color: var(--theme-text);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.875rem;
}

.no-access-message {
    color: var(--theme-muted);
    font-style: italic;
    margin-top: 10px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--theme-muted);
}

.empty-state h3 {
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .main-container {
        padding: 10px;
        align-items: flex-start;
        padding-top: 20px;
    }
    
    .dashboard-card {
        min-width: unset;
        max-width: 100%;
    }
    
    .card-header {
        padding: 20px;
    }
    
    .kgi-logo {
        height: 50px;
    }
    
    .logo-subtitle {
        font-size: 1rem;
    }
    
    .toolbar {
        padding: 10px 20px;
        gap: 15px;
    }
    
    .toolbar a {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .card-body {
        padding: 20px;
    }
    
    .welcome-title {
        font-size: 1.5rem;
    }
    
    .welcome-subtitle {
        font-size: 1rem;
    }
    
    .welcome-section {
        margin-bottom: 30px;
        padding-bottom: 20px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-tile {
        padding: 15px;
    }
}